blob: d2d2af56974b95fc3f0dd932f1f7b0bfefc518a5 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/localized_string.h"
#include "content/public/browser/web_ui_data_source.h"
void AddLocalizedStringsBulk(content::WebUIDataSource* html_source,
const LocalizedString* strings,
size_t num_strings) {
for (size_t i = 0; i < num_strings; ++i)
html_source->AddLocalizedString(strings[i].name, strings[i].id);
}