1 // Copyright 2015 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_LOCALIZED_STRINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_LOCALIZED_STRINGS_PROVIDER_H_ 7 8 class Profile; 9 10 namespace content { 11 class WebUIDataSource; 12 class WebContents; 13 } 14 15 namespace settings { 16 17 // Adds the strings needed by the browser settings page to |html_source| 18 // This function causes |html_source| to expose a strings.js file from its 19 // source which contains a mapping from string's name to its translated value. 20 // TODO(crbug/967888): This still contains OS Settings strings. Strings specific 21 // to OS settings should be moved to os_settings_localized_strings_provider.cc. 22 void AddBrowserLocalizedStrings(content::WebUIDataSource* html_source, 23 Profile* profile, 24 content::WebContents* web_contents); 25 26 } // namespace settings 27 28 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_LOCALIZED_STRINGS_PROVIDER_H_ 29