summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 01:17:49 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 01:17:49 +0000
commit3d750ef7aaedd4a6cede734e3251005f2e02dcc0 (patch)
tree0c0dbe4db6ff6cc66bd9b9f04c34ec933f6ea577 /chrome
parent81a33d9d44aa5eedb06670952165c55533a0ed5a (diff)
downloadchromium_src-3d750ef7aaedd4a6cede734e3251005f2e02dcc0.zip
chromium_src-3d750ef7aaedd4a6cede734e3251005f2e02dcc0.tar.gz
chromium_src-3d750ef7aaedd4a6cede734e3251005f2e02dcc0.tar.bz2
Moved all options2 files to the options2 namespace.
BUG=100885 TEST=everything compiles Review URL: http://codereview.chromium.org/8947010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/ui/webui/chrome_web_ui_factory.cc4
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/advanced_options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/advanced_options_handler.cc)10
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options_handler2.h (renamed from chrome/browser/ui/webui/options2/advanced_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options_utils2.h (renamed from chrome/browser/ui/webui/options2/advanced_options_utils.h)10
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options_utils2_mac.mm (renamed from chrome/browser/ui/webui/options2/advanced_options_utils_mac.mm)5
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc (renamed from chrome/browser/ui/webui/options2/advanced_options_utils_win.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/advanced_options_utils2_x11.cc (renamed from chrome/browser/ui/webui/options2/advanced_options_utils_x11.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/autofill_options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/autofill_options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/autofill_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/autofill_options_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/autofill_options_handler2.h (renamed from chrome/browser/ui/webui/options2/autofill_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/browser_options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/browser_options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/browser_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/browser_options_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/browser_options_handler2.h (renamed from chrome/browser/ui/webui/options2/browser_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/certificate_manager2_browsertest.js (renamed from chrome/browser/ui/webui/options2/certificate_manager_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/certificate_manager_handler2.cc (renamed from chrome/browser/ui/webui/options2/certificate_manager_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/certificate_manager_handler2.h (renamed from chrome/browser/ui/webui/options2/certificate_manager_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/about_page_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/about_page_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/about_page_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/about_page_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.cc)5
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.cc)7
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.cc)16
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc)11
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.h)15
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui2_uitest.cc (renamed from chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui_uitest.cc)2
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc)8
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/internet_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.h)13
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_options_util2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/language_options_util.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_options_util2.h (renamed from chrome/browser/ui/webui/options2/chromeos/language_options_util.h)8
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/proxy_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/proxy_handler.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/proxy_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/stats_options_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/system_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/system_options_handler.cc)13
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/system_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/system_settings_provider.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.h (renamed from chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h)8
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/user_image_source.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/user_image_source2.h (renamed from chrome/browser/ui/webui/options2/chromeos/user_image_source.h)8
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.cc (renamed from chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h (renamed from chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.h)13
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2_unittest.cc (renamed from chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler_unittest.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/clear_browser_data_handler2.cc (renamed from chrome/browser/ui/webui/options2/clear_browser_data_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/clear_browser_data_handler2.h (renamed from chrome/browser/ui/webui/options2/clear_browser_data_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/content_options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/content_options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/content_settings_exception_area2_browsertest.js (renamed from chrome/browser/ui/webui/options2/content_settings_exception_area_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/content_settings_handler2.cc (renamed from chrome/browser/ui/webui/options2/content_settings_handler.cc)8
-rw-r--r--chrome/browser/ui/webui/options2/content_settings_handler2.h (renamed from chrome/browser/ui/webui/options2/content_settings_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/cookies_view2_browsertest.js (renamed from chrome/browser/ui/webui/options2/cookies_view_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/cookies_view_handler2.cc (renamed from chrome/browser/ui/webui/options2/cookies_view_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/cookies_view_handler2.h (renamed from chrome/browser/ui/webui/options2/cookies_view_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/core_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/core_options_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/core_options_handler2.h (renamed from chrome/browser/ui/webui/options2/core_options_handler.h)18
-rw-r--r--chrome/browser/ui/webui/options2/font_settings2_browsertest.js (renamed from chrome/browser/ui/webui/options2/font_settings_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/font_settings_handler2.cc (renamed from chrome/browser/ui/webui/options2/font_settings_handler.cc)10
-rw-r--r--chrome/browser/ui/webui/options2/font_settings_handler2.h (renamed from chrome/browser/ui/webui/options2/font_settings_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/font_settings_utils2.h (renamed from chrome/browser/ui/webui/options2/font_settings_utils.h)10
-rw-r--r--chrome/browser/ui/webui/options2/font_settings_utils2_mac.mm (renamed from chrome/browser/ui/webui/options2/font_settings_utils_mac.mm)6
-rw-r--r--chrome/browser/ui/webui/options2/font_settings_utils2_win.cc (renamed from chrome/browser/ui/webui/options2/font_settings_utils_win.cc)5
-rw-r--r--chrome/browser/ui/webui/options2/font_settings_utils2_x11.cc (renamed from chrome/browser/ui/webui/options2/font_settings_utils_x11.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/handler_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/handler_options_handler.cc)5
-rw-r--r--chrome/browser/ui/webui/options2/handler_options_handler2.h (renamed from chrome/browser/ui/webui/options2/handler_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/import_data_handler2.cc (renamed from chrome/browser/ui/webui/options2/import_data_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/import_data_handler2.h (renamed from chrome/browser/ui/webui/options2/import_data_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/language_options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/language_options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/language_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/language_options_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/language_options_handler2.h (renamed from chrome/browser/ui/webui/options2/language_options_handler.h)12
-rw-r--r--chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc (renamed from chrome/browser/ui/webui/options2/language_options_handler_unittest.cc)4
-rw-r--r--chrome/browser/ui/webui/options2/language_options_handler_common2.cc (renamed from chrome/browser/ui/webui/options2/language_options_handler_common.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/language_options_handler_common2.h (renamed from chrome/browser/ui/webui/options2/language_options_handler_common.h)14
-rw-r--r--chrome/browser/ui/webui/options2/manage_profile_handler2.cc (renamed from chrome/browser/ui/webui/options2/manage_profile_handler.cc)8
-rw-r--r--chrome/browser/ui/webui/options2/manage_profile_handler2.h (renamed from chrome/browser/ui/webui/options2/manage_profile_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/options_sync_setup_handler2.cc (renamed from chrome/browser/ui/webui/options2/options_sync_setup_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/options_sync_setup_handler2.h (renamed from chrome/browser/ui/webui/options2/options_sync_setup_handler.h)10
-rw-r--r--chrome/browser/ui/webui/options2/options_ui2.cc179
-rw-r--r--chrome/browser/ui/webui/options2/options_ui2.h38
-rw-r--r--chrome/browser/ui/webui/options2/options_ui2_uitest.cc (renamed from chrome/browser/ui/webui/options2/options_ui_uitest.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/options_ui2_uitest.h (renamed from chrome/browser/ui/webui/options2/options_ui_uitest.h)10
-rw-r--r--chrome/browser/ui/webui/options2/password_manager2_browsertest.js (renamed from chrome/browser/ui/webui/options2/password_manager_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/password_manager_handler2.cc (renamed from chrome/browser/ui/webui/options2/password_manager_handler.cc)8
-rw-r--r--chrome/browser/ui/webui/options2/password_manager_handler2.h (renamed from chrome/browser/ui/webui/options2/password_manager_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/personal_options2_browsertest.js (renamed from chrome/browser/ui/webui/options2/personal_options_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/personal_options_handler2.cc (renamed from chrome/browser/ui/webui/options2/personal_options_handler.cc)8
-rw-r--r--chrome/browser/ui/webui/options2/personal_options_handler2.h (renamed from chrome/browser/ui/webui/options2/personal_options_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/search_engine_manager2_browsertest.js (renamed from chrome/browser/ui/webui/options2/search_engine_manager_browsertest.js)0
-rw-r--r--chrome/browser/ui/webui/options2/search_engine_manager_handler2.cc (renamed from chrome/browser/ui/webui/options2/search_engine_manager_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/search_engine_manager_handler2.h (renamed from chrome/browser/ui/webui/options2/search_engine_manager_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/stop_syncing_handler2.cc (renamed from chrome/browser/ui/webui/options2/stop_syncing_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/stop_syncing_handler2.h (renamed from chrome/browser/ui/webui/options2/stop_syncing_handler.h)14
-rw-r--r--chrome/browser/ui/webui/options2/web_intents_settings_handler2.cc (renamed from chrome/browser/ui/webui/options2/web_intents_settings_handler.cc)6
-rw-r--r--chrome/browser/ui/webui/options2/web_intents_settings_handler2.h (renamed from chrome/browser/ui/webui/options2/web_intents_settings_handler.h)14
-rw-r--r--chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc4
-rw-r--r--chrome/browser/ui/webui/sync_promo/sync_promo_handler2.h4
-rw-r--r--chrome/browser/ui/webui/sync_setup_handler2.cc4
-rw-r--r--chrome/browser/ui/webui/sync_setup_handler2.h6
-rw-r--r--chrome/chrome_browser.gypi176
112 files changed, 788 insertions, 473 deletions
diff --git a/chrome/browser/ui/webui/chrome_web_ui_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_factory.cc
index 39f88e5..fe3c031 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_factory.cc
@@ -223,7 +223,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(TabContents* tab_contents,
if (url.host() == chrome::kChromeUISettingsHost)
return &NewWebUI<OptionsUI>;
if (url.host() == chrome::kChromeUISettingsFrameHost)
- return &NewWebUI<Options2UI>;
+ return &NewWebUI<options2::OptionsUI>;
if (url.host() == chrome::kChromeUISyncInternalsHost)
return &NewWebUI<SyncInternalsUI>;
if (url.host() == chrome::kChromeUITaskManagerHost)
@@ -470,7 +470,7 @@ RefCountedMemory* ChromeWebUIFactory::GetFaviconResourceBytes(
return OptionsUI::GetFaviconResourceBytes();
if (page_url.host() == chrome::kChromeUISettingsFrameHost)
- return Options2UI::GetFaviconResourceBytes();
+ return options2::OptionsUI::GetFaviconResourceBytes();
if (page_url.host() == chrome::kChromeUIPluginsHost)
return PluginsUI::GetFaviconResourceBytes();
diff --git a/chrome/browser/ui/webui/options2/advanced_options_browsertest.js b/chrome/browser/ui/webui/options2/advanced_options2_browsertest.js
index a929bbb..a929bbb 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/advanced_options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/advanced_options_handler.cc b/chrome/browser/ui/webui/options2/advanced_options_handler2.cc
index fbb8aed..72e6953 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/advanced_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/advanced_options_handler.h"
+#include "chrome/browser/ui/webui/options2/advanced_options_handler2.h"
#include <string>
@@ -43,11 +43,13 @@
#if !defined(OS_CHROMEOS)
#include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h"
-#include "chrome/browser/ui/webui/options2/advanced_options_utils.h"
+#include "chrome/browser/ui/webui/options2/advanced_options_utils2.h"
#endif
using content::UserMetricsAction;
+namespace options2 {
+
AdvancedOptionsHandler::AdvancedOptionsHandler() {
#if(!defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN))
@@ -227,7 +229,7 @@ void AdvancedOptionsHandler::Initialize() {
WebUIMessageHandler* AdvancedOptionsHandler::Attach(WebUI* web_ui) {
// Call through to superclass.
- WebUIMessageHandler* handler = OptionsPage2UIHandler::Attach(web_ui);
+ WebUIMessageHandler* handler = OptionsPageUIHandler::Attach(web_ui);
// Register for preferences that we need to observe manually. These have
// special behaviors that aren't handled by the standard prefs UI.
@@ -641,3 +643,5 @@ void AdvancedOptionsHandler::SetupSSLConfigSettings() {
disabled);
}
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/advanced_options_handler.h b/chrome/browser/ui/webui/options2/advanced_options_handler2.h
index 3e404fa..da4eaed 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_handler.h
+++ b/chrome/browser/ui/webui/options2/advanced_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_
#pragma once
#include "chrome/browser/prefs/pref_member.h"
@@ -17,16 +17,18 @@
class CloudPrintSetupHandler;
+namespace options2 {
+
// Chrome advanced options page UI handler.
class AdvancedOptionsHandler
- : public OptionsPage2UIHandler,
+ : public OptionsPageUIHandler,
public SelectFileDialog::Listener,
public CloudPrintSetupHandlerDelegate {
public:
AdvancedOptionsHandler();
virtual ~AdvancedOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -179,4 +181,6 @@ class AdvancedOptionsHandler
DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/advanced_options_utils.h b/chrome/browser/ui/webui/options2/advanced_options_utils2.h
index edaacf5..d784899 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_utils.h
+++ b/chrome/browser/ui/webui/options2/advanced_options_utils2.h
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_UTILS_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_UTILS_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_UTILS2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_UTILS2_H_
#include "base/basictypes.h"
class TabContents;
+namespace options2 {
+
// Chrome advanced options utility methods.
class AdvancedOptionsUtilities {
public:
@@ -22,4 +24,6 @@ class AdvancedOptionsUtilities {
DISALLOW_IMPLICIT_CONSTRUCTORS(AdvancedOptionsUtilities);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_UTILS_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_UTILS2_H_
diff --git a/chrome/browser/ui/webui/options2/advanced_options_utils_mac.mm b/chrome/browser/ui/webui/options2/advanced_options_utils2_mac.mm
index c1e5b52..8f2c174 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_utils_mac.mm
+++ b/chrome/browser/ui/webui/options2/advanced_options_utils2_mac.mm
@@ -4,11 +4,13 @@
#import <Cocoa/Cocoa.h>
-#include "chrome/browser/ui/webui/options2/advanced_options_utils.h"
+#include "chrome/browser/ui/webui/options2/advanced_options_utils2.h"
#include "base/logging.h"
#include "base/mac/scoped_aedesc.h"
+namespace options2 {
+
void AdvancedOptionsUtilities::ShowNetworkProxySettings(
TabContents* tab_contents) {
NSArray* itemsToOpen = [NSArray arrayWithObject:[NSURL fileURLWithPath:
@@ -39,3 +41,4 @@ void AdvancedOptionsUtilities::ShowManageSSLCertificates(
launchIdentifier:nil];
}
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/advanced_options_utils_win.cc b/chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc
index 5942ff9..6c4d9fe 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_utils_win.cc
+++ b/chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc
@@ -2,7 +2,7 @@
// 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/options2/advanced_options_utils.h"
+#include "chrome/browser/ui/webui/options2/advanced_options_utils2.h"
#include <windows.h>
#include <cryptuiapi.h>
@@ -20,6 +20,8 @@
using content::BrowserThread;
+namespace options2 {
+
// Callback that opens the Internet Options control panel dialog with the
// Connections tab selected.
void OpenConnectionDialogCallback() {
@@ -66,3 +68,5 @@ void AdvancedOptionsUtilities::ShowManageSSLCertificates(
#endif
::CryptUIDlgCertMgr(&cert_mgr);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/advanced_options_utils_x11.cc b/chrome/browser/ui/webui/options2/advanced_options_utils2_x11.cc
index 20579b3..e505da3 100644
--- a/chrome/browser/ui/webui/options2/advanced_options_utils_x11.cc
+++ b/chrome/browser/ui/webui/options2/advanced_options_utils2_x11.cc
@@ -4,7 +4,7 @@
#if !defined(OS_CHROMEOS)
-#include "chrome/browser/ui/webui/options2/advanced_options_utils.h"
+#include "chrome/browser/ui/webui/options2/advanced_options_utils2.h"
#include "base/bind.h"
#include "base/environment.h"
@@ -18,6 +18,8 @@
using content::BrowserThread;
+namespace options2 {
+
// Command used to configure GNOME 2 proxy settings.
const char* kGNOME2ProxyConfigCommand[] = {"gnome-network-properties", NULL};
// In GNOME 3, we might need to run gnome-control-center instead. We try this
@@ -137,4 +139,6 @@ void AdvancedOptionsUtilities::ShowNetworkProxySettings(
base::Bind(&DetectAndStartProxyConfigUtil, tab_contents));
}
+} // namespace options2
+
#endif // !defined(OS_CHROMEOS)
diff --git a/chrome/browser/ui/webui/options2/autofill_options_browsertest.js b/chrome/browser/ui/webui/options2/autofill_options2_browsertest.js
index d9a5c9b..d9a5c9b 100644
--- a/chrome/browser/ui/webui/options2/autofill_options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/autofill_options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/autofill_options_handler.cc b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
index f751e635..ab8b01f 100644
--- a/chrome/browser/ui/webui/options2/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/autofill_options_handler.h"
+#include "chrome/browser/ui/webui/options2/autofill_options_handler2.h"
#include <vector>
@@ -257,6 +257,8 @@ void ValidatePhoneArguments(const ListValue* args, ListValue** list) {
} // namespace
+namespace options2 {
+
AutofillOptionsHandler::AutofillOptionsHandler()
: personal_data_(NULL) {
}
@@ -612,3 +614,5 @@ void AutofillOptionsHandler::ValidatePhoneNumbers(const ListValue* args) {
web_ui_->CallJavascriptFunction(
"AutofillEditAddressOverlay.setValidatedPhoneNumbers", *list_value);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/autofill_options_handler.h b/chrome/browser/ui/webui/options2/autofill_options_handler2.h
index 4eeb90a..827f841 100644
--- a/chrome/browser/ui/webui/options2/autofill_options_handler.h
+++ b/chrome/browser/ui/webui/options2/autofill_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
#include <string>
@@ -18,13 +18,15 @@ class DictionaryValue;
class ListValue;
}
-class AutofillOptionsHandler : public OptionsPage2UIHandler,
+namespace options2 {
+
+class AutofillOptionsHandler : public OptionsPageUIHandler,
public PersonalDataManagerObserver {
public:
AutofillOptionsHandler();
virtual ~AutofillOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -86,4 +88,6 @@ class AutofillOptionsHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/browser_options_browsertest.js b/chrome/browser/ui/webui/options2/browser_options2_browsertest.js
index e983b27..e983b27 100644
--- a/chrome/browser/ui/webui/options2/browser_options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/browser_options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler.cc b/chrome/browser/ui/webui/options2/browser_options_handler2.cc
index 9efc06e..7817a77 100644
--- a/chrome/browser/ui/webui/options2/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/browser_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/browser_options_handler.h"
+#include "chrome/browser/ui/webui/options2/browser_options_handler2.h"
#include "base/basictypes.h"
#include "base/bind.h"
@@ -46,6 +46,8 @@
using content::BrowserThread;
using content::UserMetricsAction;
+namespace options2 {
+
BrowserOptionsHandler::BrowserOptionsHandler()
: template_url_service_(NULL),
startup_custom_pages_table_model_(NULL),
@@ -565,3 +567,5 @@ void BrowserOptionsHandler::OnResultChanged(bool default_match_changed) {
web_ui_->CallJavascriptFunction(
"BrowserOptions.updateAutocompleteSuggestions", suggestions);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler.h b/chrome/browser/ui/webui/options2/browser_options_handler2.h
index 18f1ddb..c0a644e 100644
--- a/chrome/browser/ui/webui/options2/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options2/browser_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_
#pragma once
#include "base/memory/ref_counted.h"
@@ -21,8 +21,10 @@ class AutocompleteController;
class CustomHomePagesTableModel;
class TemplateURLService;
+namespace options2 {
+
// Chrome browser options page UI handler.
-class BrowserOptionsHandler : public OptionsPage2UIHandler,
+class BrowserOptionsHandler : public OptionsPageUIHandler,
public AutocompleteControllerDelegate,
public ShellIntegration::DefaultWebClientObserver,
public TemplateURLServiceObserver,
@@ -33,7 +35,7 @@ class BrowserOptionsHandler : public OptionsPage2UIHandler,
virtual void Initialize() OVERRIDE;
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -155,4 +157,6 @@ class BrowserOptionsHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/certificate_manager_browsertest.js b/chrome/browser/ui/webui/options2/certificate_manager2_browsertest.js
index fdd2373..fdd2373 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_browsertest.js
+++ b/chrome/browser/ui/webui/options2/certificate_manager2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/certificate_manager_handler.cc b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
index 00d52f6..694cc2a 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_handler.cc
+++ b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/certificate_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -140,6 +140,8 @@ std::string NetErrorToString(int net_error) {
} // namespace
+namespace options2 {
+
///////////////////////////////////////////////////////////////////////////////
// FileAccessProvider
@@ -1044,3 +1046,5 @@ void CertificateManagerHandler::CheckTpmTokenReady(const ListValue* args) {
gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const {
return web_ui_->tab_contents()->view()->GetTopLevelNativeWindow();
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/certificate_manager_handler.h b/chrome/browser/ui/webui/options2/certificate_manager_handler2.h
index 9844a19..d86b298 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_handler.h
+++ b/chrome/browser/ui/webui/options2/certificate_manager_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_
#pragma once
#include <string>
@@ -17,16 +17,18 @@
#include "net/base/cert_database.h"
#include "ui/gfx/native_widget_types.h"
+namespace options2 {
+
class FileAccessProvider;
-class CertificateManagerHandler : public OptionsPage2UIHandler,
+class CertificateManagerHandler : public OptionsPageUIHandler,
public CertificateManagerModel::Observer,
public SelectFileDialog::Listener {
public:
CertificateManagerHandler();
virtual ~CertificateManagerHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -168,4 +170,6 @@ class CertificateManagerHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/about_page_handler.cc b/chrome/browser/ui/webui/options2/chromeos/about_page_handler2.cc
index 31d960e..86d8eaa 100644
--- a/chrome/browser/ui/webui/options2/chromeos/about_page_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/about_page_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/about_page_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/about_page_handler2.h"
#include <vector>
@@ -60,6 +60,7 @@ std::string StringSubRange(const std::string& text, size_t start,
} // namespace
namespace chromeos {
+namespace options2 {
class AboutPageHandler::UpdateObserver
: public UpdateEngineClient::Observer {
@@ -416,4 +417,5 @@ void AboutPageHandler::UpdateSelectedChannel(UpdateObserver* observer,
}
}
-} // namespace chromeos
+} // namespace options2
+} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/about_page_handler.h b/chrome/browser/ui/webui/options2/chromeos/about_page_handler2.h
index cfd78b0..6a01802 100644
--- a/chrome/browser/ui/webui/options2/chromeos/about_page_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/about_page_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ABOUT_PAGE_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ABOUT_PAGE_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ABOUT_PAGE_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ABOUT_PAGE_HANDLER2_H_
#include <string>
@@ -13,15 +13,16 @@
#include "chrome/browser/chromeos/version_loader.h"
namespace chromeos {
+namespace options2 {
// ChromeOS about page UI handler.
-class AboutPageHandler : public OptionsPage2UIHandler {
+class AboutPageHandler : public ::options2::OptionsPageUIHandler {
public:
AboutPageHandler();
virtual ~AboutPageHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -69,6 +70,7 @@ class AboutPageHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(AboutPageHandler);
};
-} // namespace chromeos
+} // namespace options2
+} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ABOUT_PAGE_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ABOUT_PAGE_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.cc
index 396dcec..434c8a8b 100644
--- a/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/accounts_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -37,6 +37,8 @@ bool WhitelistUser(const std::string& username) {
} // namespace
+namespace options2 {
+
AccountsOptionsHandler::AccountsOptionsHandler() {
}
@@ -129,4 +131,5 @@ void AccountsOptionsHandler::HandleWhitelistExistingUsers(
}
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.h
index f16c5ba..591784b 100644
--- a/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.h
@@ -2,17 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
namespace chromeos {
+namespace options2 {
// ChromeOS accounts options page handler.
-class AccountsOptionsHandler : public OptionsPage2UIHandler {
+class AccountsOptionsHandler : public ::options2::OptionsPageUIHandler {
public:
AccountsOptionsHandler();
virtual ~AccountsOptionsHandler();
@@ -20,7 +21,7 @@ class AccountsOptionsHandler : public OptionsPage2UIHandler {
// WebUIMessageHandler implementation.
virtual void RegisterMessages() OVERRIDE;
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -35,6 +36,7 @@ class AccountsOptionsHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc
index f8f6a28..5abef0c 100644
--- a/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/bluetooth_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -10,7 +10,7 @@
#include "base/values.h"
#include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
#include "chrome/browser/chromeos/system/runtime_environment.h"
-#include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h"
+#include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.h"
#include "chrome/common/chrome_switches.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -28,6 +28,7 @@ const int kUpdateDevicePasskeyIndex = 2;
} // namespace
namespace chromeos {
+namespace options2 {
BluetoothOptionsHandler::BluetoothOptionsHandler() {
}
@@ -407,5 +408,5 @@ void BluetoothOptionsHandler::GenerateFakeDevice(
delete device;
}
+} // namespace options2
} // namespace chromeos
-
diff --git a/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.h
index f719734..27badb8 100644
--- a/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_
#pragma once
#include <string>
@@ -18,16 +18,17 @@ class DictionaryValue;
}
namespace chromeos {
+namespace options2 {
// Handler for Bluetooth options on the system options page.
-class BluetoothOptionsHandler : public OptionsPage2UIHandler,
+class BluetoothOptionsHandler : public ::options2::OptionsPageUIHandler,
public chromeos::BluetoothManager::Observer,
public chromeos::BluetoothAdapter::Observer {
public:
BluetoothOptionsHandler();
virtual ~BluetoothOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -133,6 +134,7 @@ class BluetoothOptionsHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
index cddd2c4..0ad7b66c 100644
--- a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/change_picture_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -33,6 +33,7 @@
#include "ui/views/widget/widget.h"
namespace chromeos {
+namespace options2 {
namespace {
@@ -329,7 +330,7 @@ void ChangePictureOptionsHandler::Observe(
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- OptionsPage2UIHandler::Observe(type, source, details);
+ ::options2::OptionsPageUIHandler::Observe(type, source, details);
if (type == chrome::NOTIFICATION_PROFILE_IMAGE_UPDATED) {
// User profile image has been updated.
SendProfileImage(*content::Details<const SkBitmap>(details).ptr(), false);
@@ -344,4 +345,5 @@ gfx::NativeWindow ChangePictureOptionsHandler::GetBrowserWindow() const {
return browser->window()->GetNativeHandle();
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h
index 8db67f4..cb5fd8a 100644
--- a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER2_H_
#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/options/take_photo_dialog.h"
@@ -18,16 +18,17 @@ class ListValue;
}
namespace chromeos {
+namespace options2 {
// ChromeOS user image options page UI handler.
-class ChangePictureOptionsHandler : public OptionsPage2UIHandler,
+class ChangePictureOptionsHandler : public ::options2::OptionsPageUIHandler,
public SelectFileDialog::Listener,
public TakePhotoDialog::Delegate {
public:
ChangePictureOptionsHandler();
virtual ~ChangePictureOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -108,6 +109,7 @@ class ChangePictureOptionsHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(ChangePictureOptionsHandler);
};
-} // namespace chromeos
+} // namespace options2
+} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CHANGE_PICTURE_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
index 91fbc226..d03c918 100644
--- a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/core_chromeos_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h"
#include <string>
@@ -17,7 +17,7 @@
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/prefs/pref_set_observer.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_details.h"
@@ -26,6 +26,7 @@
#include "content/public/browser/user_metrics.h"
namespace chromeos {
+namespace options2 {
namespace {
@@ -133,7 +134,7 @@ base::Value* CoreChromeOSOptionsHandler::FetchPref(
pref_service->FindPreference(prefs::kProxy);
return CreateValueForPref(pref, controlling_pref);
}
- return ::CoreOptionsHandler::FetchPref(pref_name);
+ return ::options2::CoreOptionsHandler::FetchPref(pref_name);
}
const base::Value* pref_value = CrosSettings::Get()->GetPref(pref_name);
@@ -160,7 +161,7 @@ void CoreChromeOSOptionsHandler::ObservePref(const std::string& pref_name) {
return;
}
if (!CrosSettings::IsCrosSettings(pref_name))
- return ::CoreOptionsHandler::ObservePref(pref_name);
+ return ::options2::CoreOptionsHandler::ObservePref(pref_name);
CrosSettings::Get()->AddSettingsObserver(pref_name.c_str(), this);
}
@@ -174,7 +175,7 @@ void CoreChromeOSOptionsHandler::SetPref(const std::string& pref_name,
return;
}
if (!CrosSettings::IsCrosSettings(pref_name))
- return ::CoreOptionsHandler::SetPref(pref_name, value, metric);
+ return ::options2::CoreOptionsHandler::SetPref(pref_name, value, metric);
handling_change_ = true;
CrosSettings::Get()->Set(pref_name, *value);
handling_change_ = false;
@@ -189,7 +190,7 @@ void CoreChromeOSOptionsHandler::StopObservingPref(const std::string& path) {
if (CrosSettings::IsCrosSettings(path))
CrosSettings::Get()->RemoveSettingsObserver(path.c_str(), this);
else // Call base class to handle regular preferences.
- ::CoreOptionsHandler::StopObservingPref(path);
+ ::options2::CoreOptionsHandler::StopObservingPref(path);
}
void CoreChromeOSOptionsHandler::Observe(
@@ -215,7 +216,7 @@ void CoreChromeOSOptionsHandler::Observe(
return;
}
}
- ::CoreOptionsHandler::Observe(type, source, details);
+ ::options2::CoreOptionsHandler::Observe(type, source, details);
}
void CoreChromeOSOptionsHandler::NotifySettingsChanged(
@@ -265,4 +266,5 @@ void CoreChromeOSOptionsHandler::NotifyProxyPrefsChanged() {
}
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h
index 48aa029..963fe77 100644
--- a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h
@@ -2,20 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CORE_CHROMEOS_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CORE_CHROMEOS_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CORE_CHROMEOS_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CORE_CHROMEOS_OPTIONS_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
-#include "chrome/browser/ui/webui/options2/core_options_handler.h"
+#include "chrome/browser/ui/webui/options2/core_options_handler2.h"
class PrefSetObserver;
namespace chromeos {
+namespace options2 {
// CoreChromeOSOptionsHandler handles ChromeOS settings.
-class CoreChromeOSOptionsHandler : public CoreOptionsHandler {
+class CoreChromeOSOptionsHandler : public ::options2::CoreOptionsHandler {
public:
CoreChromeOSOptionsHandler();
virtual ~CoreChromeOSOptionsHandler();
@@ -48,6 +49,7 @@ class CoreChromeOSOptionsHandler : public CoreOptionsHandler {
base::WeakPtrFactory<CoreChromeOSOptionsHandler> pointer_factory_;
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CORE_CHROMEOS_OPTIONS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CORE_CHROMEOS_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc
index 29f5c0a..b3bbcc8 100644
--- a/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/cros_language_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h"
#include <map>
#include <set>
@@ -28,6 +28,7 @@
using content::UserMetricsAction;
namespace chromeos {
+namespace options2 {
CrosLanguageOptionsHandler::CrosLanguageOptionsHandler() {
}
@@ -37,7 +38,8 @@ CrosLanguageOptionsHandler::~CrosLanguageOptionsHandler() {
void CrosLanguageOptionsHandler::GetLocalizedValues(
DictionaryValue* localized_strings) {
- LanguageOptionsHandlerCommon::GetLocalizedValues(localized_strings);
+ ::options2::LanguageOptionsHandlerCommon::GetLocalizedValues(
+ localized_strings);
RegisterTitle(localized_strings, "languagePage",
IDS_OPTIONS_SETTINGS_LANGUAGES_AND_INPUT_DIALOG_TITLE);
@@ -75,7 +77,7 @@ void CrosLanguageOptionsHandler::GetLocalizedValues(
}
void CrosLanguageOptionsHandler::RegisterMessages() {
- LanguageOptionsHandlerCommon::RegisterMessages();
+ ::options2::LanguageOptionsHandlerCommon::RegisterMessages();
web_ui_->RegisterMessageCallback("inputMethodDisable",
base::Bind(&CrosLanguageOptionsHandler::InputMethodDisableCallback,
@@ -241,4 +243,5 @@ void CrosLanguageOptionsHandler::InputMethodOptionsOpenCallback(
content::RecordComputedAction(action);
}
-} // namespace chromeos
+} // namespace options2
+} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h
index aa0464b..3ed33dc 100644
--- a/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h
@@ -2,19 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
#include "chrome/browser/chromeos/input_method/ibus_controller.h"
-#include "chrome/browser/ui/webui/options2/language_options_handler.h"
+#include "chrome/browser/ui/webui/options2/language_options_handler2.h"
namespace chromeos {
+namespace options2 {
// Language options page UI handler for Chrome OS. For non-Chrome OS,
// see LanguageOptionsHnadler.
-class CrosLanguageOptionsHandler : public LanguageOptionsHandlerCommon {
+class CrosLanguageOptionsHandler
+ : public ::options2::LanguageOptionsHandlerCommon {
public:
CrosLanguageOptionsHandler();
virtual ~CrosLanguageOptionsHandler();
@@ -68,6 +70,7 @@ class CrosLanguageOptionsHandler : public LanguageOptionsHandlerCommon {
DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler);
};
-} // namespace chromeos
+} // namespace options2
+} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui_uitest.cc b/chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui2_uitest.cc
index e001d63..b5365ee 100644
--- a/chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui_uitest.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui2_uitest.cc
@@ -2,7 +2,7 @@
// 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/options2/options_ui_uitest.h"
+#include "chrome/browser/ui/webui/options2/options_ui2_uitest.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/automation/automation_proxy.h"
#include "chrome/test/automation/browser_proxy.h"
diff --git a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
index 6d47870..d4d04e8 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/internet_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h"
#include <ctype.h>
@@ -243,6 +243,8 @@ DictionaryValue* NetworkInfoDictionary::BuildDictionary() {
} // namespace
+namespace options2 {
+
InternetOptionsHandler::InternetOptionsHandler() {
registrar_.Add(this, chrome::NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED,
content::NotificationService::AllSources());
@@ -756,7 +758,7 @@ void InternetOptionsHandler::Observe(
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- OptionsPage2UIHandler::Observe(type, source, details);
+ OptionsPageUIHandler::Observe(type, source, details);
if (type == chrome::NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED) {
base::FundamentalValue require_pin(*content::Details<bool>(details).ptr());
web_ui_->CallJavascriptFunction(
@@ -1379,3 +1381,5 @@ void InternetOptionsHandler::SetValueDictionary(
value_dict->SetString("controlledBy", "recommended");
settings->Set(key, value_dict);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h
index 568f097..90d71a0 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
#include <string>
@@ -19,9 +19,11 @@ namespace views {
class WidgetDelegate;
}
+namespace options2 {
+
// ChromeOS internet options page UI handler.
class InternetOptionsHandler
- : public OptionsPage2UIHandler,
+ : public OptionsPageUIHandler,
public chromeos::NetworkLibrary::NetworkManagerObserver,
public chromeos::NetworkLibrary::NetworkObserver,
public chromeos::NetworkLibrary::CellularDataPlanObserver {
@@ -29,7 +31,7 @@ class InternetOptionsHandler
InternetOptionsHandler();
virtual ~InternetOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -145,4 +147,6 @@ class InternetOptionsHandler
DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.cc b/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.cc
index c3c3096..06a20c5 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/language_chewing_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h"
#include <limits>
@@ -11,7 +11,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/chromeos/language_preferences.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_options_util2.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -20,6 +20,7 @@ const char kI18nPrefix[] = "Chewing_";
} // namespace
namespace chromeos {
+namespace options2 {
LanguageChewingHandler::LanguageChewingHandler() {
}
@@ -100,4 +101,5 @@ void LanguageChewingHandler::GetLocalizedValues(
CreateMultipleChoiceList(language_prefs::kChewingHsuSelKeyType));
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.h b/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h
index 5a37249..c2c9eff 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CHEWING_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CHEWING_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CHEWING_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CHEWING_HANDLER2_H_
#pragma once
#include "base/basictypes.h"
@@ -15,14 +15,15 @@ class DictionaryValue;
}
namespace chromeos {
+namespace options2 {
// Chewing options page UI handler.
-class LanguageChewingHandler : public OptionsPage2UIHandler {
+class LanguageChewingHandler : public ::options2::OptionsPageUIHandler {
public:
LanguageChewingHandler();
virtual ~LanguageChewingHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -30,6 +31,7 @@ class LanguageChewingHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(LanguageChewingHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CHEWING_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CHEWING_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.cc b/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.cc
index d95b2ace..8ed76f3 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/language_customize_modifier_keys_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.h"
#include "base/values.h"
#include "chrome/browser/chromeos/input_method/xkeyboard.h"
@@ -34,6 +34,7 @@ const char* kDataValuesNames[] = {
} // namespace
namespace chromeos {
+namespace options2 {
LanguageCustomizeModifierKeysHandler::LanguageCustomizeModifierKeysHandler() {
}
@@ -76,4 +77,5 @@ void LanguageCustomizeModifierKeysHandler::GetLocalizedValues(
}
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.h b/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.h
index 67ea8bd..c8aa144 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CUSTOMIZE_MODIFIER_KEYS_HANDLER_H_ // NOLINT
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CUSTOMIZE_MODIFIER_KEYS_HANDLER_H_ // NOLINT
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CUSTOMIZE_MODIFIER_KEYS_HANDLER2_H_ // NOLINT
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CUSTOMIZE_MODIFIER_KEYS_HANDLER2_H_ // NOLINT
#pragma once
#include "base/compiler_specific.h"
@@ -11,20 +11,23 @@
#include "chrome/browser/ui/webui/options2/options_ui2.h"
namespace chromeos {
+namespace options2 {
// Customize modifier keys overlay page UI handler.
-class LanguageCustomizeModifierKeysHandler : public OptionsPage2UIHandler {
+class LanguageCustomizeModifierKeysHandler
+ : public ::options2::OptionsPageUIHandler {
public:
LanguageCustomizeModifierKeysHandler();
virtual ~LanguageCustomizeModifierKeysHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(LanguageCustomizeModifierKeysHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CUSTOMIZE_MODIFIER_KEYS_HANDLER_H_ // NOLINT
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_CUSTOMIZE_MODIFIER_KEYS_HANDLER2_H_ // NOLINT
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.cc b/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.cc
index 5362ccf..5d7db31 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/language_hangul_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
@@ -11,6 +11,7 @@
#include "ui/base/l10n/l10n_util.h"
namespace chromeos {
+namespace options2 {
LanguageHangulHandler::LanguageHangulHandler() {
}
@@ -44,4 +45,5 @@ ListValue* LanguageHangulHandler::GetKeyboardLayoutList() {
return keyboard_layout_list;
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.h b/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h
index 8b1c9de..607d249 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_HANGUL_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_HANGUL_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_HANGUL_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_HANGUL_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
@@ -15,14 +15,15 @@ class ListValue;
}
namespace chromeos {
+namespace options2 {
// Hangul options page UI handler.
-class LanguageHangulHandler : public OptionsPage2UIHandler {
+class LanguageHangulHandler : public ::options2::OptionsPageUIHandler {
public:
LanguageHangulHandler();
virtual ~LanguageHangulHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -33,6 +34,7 @@ class LanguageHangulHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(LanguageHangulHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_HANGUL_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_HANGUL_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.cc b/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.cc
index ce8afe9..8887d51 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.cc
@@ -2,13 +2,13 @@
// 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/options2/chromeos/language_mozc_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/chromeos/language_preferences.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_options_util2.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -17,6 +17,7 @@ const char kI18nPrefix[] = "mozc_";
} // namespace
namespace chromeos {
+namespace options2 {
LanguageMozcHandler::LanguageMozcHandler() {
}
@@ -67,4 +68,5 @@ void LanguageMozcHandler::GetLocalizedValues(
}
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.h b/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h
index df1410e..589ef27 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_MOZC_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_MOZC_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_MOZC_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_MOZC_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
@@ -14,14 +14,15 @@ class DictionaryValue;
}
namespace chromeos {
+namespace options2 {
// Mozc options page UI handler.
-class LanguageMozcHandler : public OptionsPage2UIHandler {
+class LanguageMozcHandler : public ::options2::OptionsPageUIHandler {
public:
LanguageMozcHandler();
virtual ~LanguageMozcHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -29,6 +30,7 @@ class LanguageMozcHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(LanguageMozcHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_MOZC_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_MOZC_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_options_util.cc b/chrome/browser/ui/webui/options2/chromeos/language_options_util2.cc
index 6108070..46820cd 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_options_util.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/language_options_util2.cc
@@ -2,9 +2,10 @@
// 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/options2/chromeos/language_options_util.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_options_util2.h"
namespace chromeos {
+namespace options2 {
// See comments in .h.
Value* CreateValue(const char* in_value) {
@@ -15,4 +16,5 @@ Value* CreateValue(int in_value) {
return Value::CreateIntegerValue(in_value);
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_options_util.h b/chrome/browser/ui/webui/options2/chromeos/language_options_util2.h
index 70f7307..235d092 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_options_util.h
+++ b/chrome/browser/ui/webui/options2/chromeos/language_options_util2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_OPTIONS_UTIL_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_OPTIONS_UTIL_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_OPTIONS_UTIL2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_OPTIONS_UTIL2_H_
#pragma once
#include <string>
@@ -18,6 +18,7 @@ class ListValue;
}
namespace chromeos {
+namespace options2 {
// Returns an i18n-content value corresponding to |preference|.
template <typename T>
@@ -78,6 +79,7 @@ base::ListValue* CreateMultipleChoiceList(
return list_value;
}
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_OPTIONS_UTIL_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_OPTIONS_UTIL2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.cc b/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.cc
index 8e2c19c..4b3c72d9 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.cc
@@ -2,11 +2,11 @@
// 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/options2/chromeos/language_pinyin_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h"
#include "base/values.h"
#include "chrome/browser/chromeos/language_preferences.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_options_util2.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -15,6 +15,7 @@ const char kI18nPrefix[] = "Pinyin";
} // namespace
namespace chromeos {
+namespace options2 {
LanguagePinyinHandler::LanguagePinyinHandler() {
}
@@ -64,4 +65,5 @@ void LanguagePinyinHandler::GetLocalizedValues(
list_value);
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.h b/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h
index 7e0d922..5071513 100644
--- a/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_PINYIN_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_PINYIN_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_PINYIN_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_PINYIN_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
@@ -14,14 +14,15 @@ class DictionaryValue;
}
namespace chromeos {
+namespace options2 {
// Pinyin options page UI handler.
-class LanguagePinyinHandler : public OptionsPage2UIHandler {
+class LanguagePinyinHandler : public ::options2::OptionsPageUIHandler {
public:
LanguagePinyinHandler();
virtual ~LanguagePinyinHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -29,6 +30,7 @@ class LanguagePinyinHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(LanguagePinyinHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_PINYIN_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_LANGUAGE_PINYIN_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/proxy_handler.cc b/chrome/browser/ui/webui/options2/chromeos/proxy_handler2.cc
index 773fe51..d3fa638 100644
--- a/chrome/browser/ui/webui/options2/chromeos/proxy_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/proxy_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/proxy_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h"
#include "base/basictypes.h"
#include "base/callback.h"
@@ -18,6 +18,7 @@
#include "ui/base/resource/resource_bundle.h"
namespace chromeos {
+namespace options2 {
ProxyHandler::ProxyHandler() {
}
@@ -83,4 +84,5 @@ void ProxyHandler::SetNetworkName(const std::string& name) {
network);
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/proxy_handler.h b/chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h
index d170786..ad2f254 100644
--- a/chrome/browser/ui/webui/options2/chromeos/proxy_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h
@@ -2,21 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_PROXY_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_PROXY_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_PROXY_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_PROXY_HANDLER2_H_
#include "base/compiler_specific.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
namespace chromeos {
+namespace options2 {
// ChromeOS proxy options page UI handler.
-class ProxyHandler : public OptionsPage2UIHandler {
+class ProxyHandler : public ::options2::OptionsPageUIHandler {
public:
explicit ProxyHandler();
virtual ~ProxyHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -28,6 +29,7 @@ class ProxyHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(ProxyHandler);
};
-} // namespace chromeos
+} // namespace options2
+} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_PROXY_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_PROXY_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.cc
index 610b01a..838498a 100644
--- a/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/stats_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -13,6 +13,7 @@
using content::UserMetricsAction;
namespace chromeos {
+namespace options2 {
StatsOptionsHandler::StatsOptionsHandler() {
}
@@ -44,4 +45,5 @@ void StatsOptionsHandler::HandleMetricsReportingCheckbox(
#endif
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h
index 2579cb30..a2d7ede 100644
--- a/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h
@@ -2,24 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
namespace chromeos {
+namespace options2 {
// ChromeOS handler for "Stats/crash reporting to Google" option of the Advanced
// settings page. This handler does only ChromeOS-specific actions while default
// code is in Chrome's AdvancedOptionsHandler
// (chrome/browser/webui/advanced_options_handler.cc).
-class StatsOptionsHandler : public OptionsPage2UIHandler {
+class StatsOptionsHandler : public ::options2::OptionsPageUIHandler {
public:
StatsOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -33,6 +34,7 @@ class StatsOptionsHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/system_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/system_options_handler2.cc
index 791c903..586dd6a 100644
--- a/chrome/browser/ui/webui/options2/chromeos/system_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/system_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/system_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h"
#include <string>
@@ -25,7 +25,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h"
+#include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/extensions/extension.h"
@@ -44,7 +44,10 @@ namespace {
void TouchpadExistsFileThread(bool* exists) {
*exists = chromeos::system::touchpad_settings::TouchpadExists();
}
-}
+
+} // namespace
+
+namespace options2 {
SystemOptionsHandler::SystemOptionsHandler() {
}
@@ -113,7 +116,7 @@ void SystemOptionsHandler::GetLocalizedValues(
// TODO(pastarmovj): replace this with a call to the CrosSettings list
// handling functionality to come.
localized_strings->Set("timezoneList",
- static_cast<chromeos::SystemSettingsProvider*>(
+ static_cast<chromeos::options2::SystemSettingsProvider*>(
chromeos::CrosSettings::Get()->GetProvider(
chromeos::kSystemTimezone))->GetTimezoneList());
}
@@ -174,3 +177,5 @@ void SystemOptionsHandler::IncreaseScreenBrightnessCallback(
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
IncreaseScreenBrightness();
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/chromeos/system_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h
index e3e333b..71b75b0 100644
--- a/chrome/browser/ui/webui/options2/chromeos/system_options_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER2_H_
#pragma once
#include "base/memory/weak_ptr.h"
@@ -14,15 +14,17 @@ namespace base {
class DictionaryValue;
}
+namespace options2 {
+
// ChromeOS system options page UI handler.
class SystemOptionsHandler
- : public OptionsPage2UIHandler,
+ : public OptionsPageUIHandler,
public base::SupportsWeakPtr<SystemOptionsHandler> {
public:
SystemOptionsHandler();
virtual ~SystemOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -47,4 +49,6 @@ class SystemOptionsHandler
DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/system_settings_provider.cc b/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc
index c951164..51ffde6 100644
--- a/chrome/browser/ui/webui/options2/chromeos/system_settings_provider.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/system_settings_provider.h"
+#include "chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.h"
#include <string>
@@ -182,6 +182,7 @@ string16 GetExemplarCity(const icu::TimeZone& zone) {
} // namespace anonymous
namespace chromeos {
+namespace options2 {
SystemSettingsProvider::SystemSettingsProvider(
const NotifyObserversCallback& notify_cb)
@@ -330,4 +331,5 @@ string16 SystemSettingsProvider::GetKnownTimezoneID(
return string16();
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h b/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.h
index 33399ed..f70caa1 100644
--- a/chrome/browser/ui/webui/options2/chromeos/system_settings_provider.h
+++ b/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_SETTINGS_PROVIDER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_SETTINGS_PROVIDER2_H_
#include <vector>
@@ -20,6 +20,7 @@ class StringValue;
}
namespace chromeos {
+namespace options2 {
class SystemSettingsProvider : public CrosSettingsProvider,
public system::TimezoneSettings::Observer {
@@ -71,6 +72,7 @@ class SystemSettingsProvider : public CrosSettingsProvider,
DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_SETTINGS_PROVIDER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/user_image_source.cc b/chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc
index f259c03..3b838ea 100644
--- a/chrome/browser/ui/webui/options2/chromeos/user_image_source.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/user_image_source.h"
+#include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h"
#include "base/memory/ref_counted_memory.h"
#include "chrome/browser/chromeos/login/user_manager.h"
@@ -12,6 +12,7 @@
#include "ui/gfx/codec/png_codec.h"
namespace chromeos {
+namespace options2 {
std::vector<unsigned char> UserImageSource::GetUserImage(
const std::string& email) const {
@@ -50,4 +51,5 @@ std::string UserImageSource::GetMimeType(const std::string&) const {
return "image/png";
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/user_image_source.h b/chrome/browser/ui/webui/options2/chromeos/user_image_source2.h
index ea38b49..6bea08e 100644
--- a/chrome/browser/ui/webui/options2/chromeos/user_image_source.h
+++ b/chrome/browser/ui/webui/options2/chromeos/user_image_source2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE2_H_
#pragma once
#include <string>
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
namespace chromeos {
+namespace options2 {
// UserImageSource is the data source that serves user images for users that
// have it.
@@ -39,6 +40,7 @@ class UserImageSource : public ChromeURLDataManager::DataSource {
DISALLOW_COPY_AND_ASSIGN(UserImageSource);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.cc b/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.cc
index 22c0fe6..ee09a4f 100644
--- a/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/virtual_keyboard_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h"
#include <map>
#include <set>
@@ -30,6 +30,7 @@
namespace ime = ::chromeos::input_method;
namespace chromeos {
+namespace options2 {
VirtualKeyboardManagerHandler::VirtualKeyboardManagerHandler() {
}
@@ -234,4 +235,5 @@ ListValue* VirtualKeyboardManagerHandler::CreateVirtualKeyboardList(
return layout_list;
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.h b/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h
index 6e720f7..bf98218 100644
--- a/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.h
+++ b/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDLER2_H_
#pragma once
#include <map>
@@ -24,13 +24,15 @@ namespace input_method {
class VirtualKeyboard;
} // namespace input_method;
+namespace options2 {
+
// A class which provides information to virtual_keyboard.js.
-class VirtualKeyboardManagerHandler : public OptionsPage2UIHandler {
+class VirtualKeyboardManagerHandler : public ::options2::OptionsPageUIHandler {
public:
VirtualKeyboardManagerHandler();
virtual ~VirtualKeyboardManagerHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -73,6 +75,7 @@ class VirtualKeyboardManagerHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManagerHandler);
};
+} // namespace options2
} // namespace chromeos
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler_unittest.cc b/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2_unittest.cc
index 5783401..8d41ffb 100644
--- a/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler_unittest.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2_unittest.cc
@@ -2,7 +2,7 @@
// 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/options2/chromeos/virtual_keyboard_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h"
#include <map>
#include <set>
@@ -28,6 +28,7 @@ std::set<std::string> CreateLayoutSet(const char* (&layouts)[L]) {
} // namespace
namespace chromeos {
+namespace options2 {
class Testee : public VirtualKeyboardManagerHandler {
public:
@@ -547,4 +548,5 @@ TEST(VirtualKeyboardManagerHandler, TestMultipleKeyboards) {
EXPECT_EQ("name 3", string_value);
}
+} // namespace options2
} // namespace chromeos
diff --git a/chrome/browser/ui/webui/options2/clear_browser_data_handler.cc b/chrome/browser/ui/webui/options2/clear_browser_data_handler2.cc
index a861780..5fb263c 100644
--- a/chrome/browser/ui/webui/options2/clear_browser_data_handler.cc
+++ b/chrome/browser/ui/webui/options2/clear_browser_data_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/clear_browser_data_handler.h"
+#include "chrome/browser/ui/webui/options2/clear_browser_data_handler2.h"
#include "base/basictypes.h"
#include "base/bind.h"
@@ -19,6 +19,8 @@
#include "grit/locale_settings.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
ClearBrowserDataHandler::ClearBrowserDataHandler() : remover_(NULL) {
}
@@ -141,3 +143,5 @@ void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() {
DCHECK(web_ui_);
web_ui_->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing");
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/clear_browser_data_handler.h b/chrome/browser/ui/webui/options2/clear_browser_data_handler2.h
index 0823158..8680059 100644
--- a/chrome/browser/ui/webui/options2/clear_browser_data_handler.h
+++ b/chrome/browser/ui/webui/options2/clear_browser_data_handler2.h
@@ -2,22 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_
#pragma once
#include "chrome/browser/browsing_data_remover.h"
#include "chrome/browser/prefs/pref_member.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
+namespace options2 {
+
// Clear browser data handler page UI handler.
-class ClearBrowserDataHandler : public OptionsPage2UIHandler,
+class ClearBrowserDataHandler : public OptionsPageUIHandler,
public BrowsingDataRemover::Observer {
public:
ClearBrowserDataHandler();
virtual ~ClearBrowserDataHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void Initialize() OVERRIDE;
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
@@ -42,4 +44,6 @@ class ClearBrowserDataHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CLEAR_BROWSER_DATA_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/content_options_browsertest.js b/chrome/browser/ui/webui/options2/content_options2_browsertest.js
index 605660a..605660a 100644
--- a/chrome/browser/ui/webui/options2/content_options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/content_options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/content_settings_exception_area_browsertest.js b/chrome/browser/ui/webui/options2/content_settings_exception_area2_browsertest.js
index 33b3fd2..33b3fd2 100644
--- a/chrome/browser/ui/webui/options2/content_settings_exception_area_browsertest.js
+++ b/chrome/browser/ui/webui/options2/content_settings_exception_area2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/content_settings_handler.cc b/chrome/browser/ui/webui/options2/content_settings_handler2.cc
index 67fb223..24c910e 100644
--- a/chrome/browser/ui/webui/options2/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options2/content_settings_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/content_settings_handler.h"
+#include "chrome/browser/ui/webui/options2/content_settings_handler2.h"
#include <map>
#include <string>
@@ -188,6 +188,8 @@ DictionaryValue* GetNotificationExceptionForPage(
} // namespace
+namespace options2 {
+
ContentSettingsHandler::ContentSettingsHandler() {
}
@@ -371,7 +373,7 @@ void ContentSettingsHandler::Observe(
}
default:
- OptionsPage2UIHandler::Observe(type, source, details);
+ OptionsPageUIHandler::Observe(type, source, details);
}
}
@@ -877,3 +879,5 @@ HostContentSettingsMap*
return profile->GetOffTheRecordProfile()->GetHostContentSettingsMap();
return NULL;
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/content_settings_handler.h b/chrome/browser/ui/webui/options2/content_settings_handler2.h
index 665a3ef..c08fc40 100644
--- a/chrome/browser/ui/webui/options2/content_settings_handler.h
+++ b/chrome/browser/ui/webui/options2/content_settings_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
#pragma once
#include "chrome/browser/plugin_data_remover_helper.h"
@@ -16,12 +16,14 @@
class HostContentSettingsMap;
class ProtocolHandlerRegistry;
-class ContentSettingsHandler : public OptionsPage2UIHandler {
+namespace options2 {
+
+class ContentSettingsHandler : public OptionsPageUIHandler {
public:
ContentSettingsHandler();
virtual ~ContentSettingsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -110,4 +112,6 @@ class ContentSettingsHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/cookies_view_browsertest.js b/chrome/browser/ui/webui/options2/cookies_view2_browsertest.js
index 43213cb..43213cb 100644
--- a/chrome/browser/ui/webui/options2/cookies_view_browsertest.js
+++ b/chrome/browser/ui/webui/options2/cookies_view2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/cookies_view_handler.cc b/chrome/browser/ui/webui/options2/cookies_view_handler2.cc
index 6d86eb2..8375ed4 100644
--- a/chrome/browser/ui/webui/options2/cookies_view_handler.cc
+++ b/chrome/browser/ui/webui/options2/cookies_view_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/cookies_view_handler.h"
+#include "chrome/browser/ui/webui/options2/cookies_view_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -20,6 +20,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
CookiesViewHandler::CookiesViewHandler() : batch_update_(false) {
}
@@ -220,3 +222,5 @@ void CookiesViewHandler::SendChildren(CookieTreeNode* parent) {
web_ui_->CallJavascriptFunction("CookiesView.loadChildren", args);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/cookies_view_handler.h b/chrome/browser/ui/webui/options2/cookies_view_handler2.h
index 5167cf6..19e4110 100644
--- a/chrome/browser/ui/webui/options2/cookies_view_handler.h
+++ b/chrome/browser/ui/webui/options2/cookies_view_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_COOKIES_VIEW_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_COOKIES_VIEW_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_COOKIES_VIEW_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_COOKIES_VIEW_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
@@ -11,13 +11,15 @@
#include "chrome/browser/cookies_tree_model.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
-class CookiesViewHandler : public OptionsPage2UIHandler,
+namespace options2 {
+
+class CookiesViewHandler : public OptionsPageUIHandler,
public CookiesTreeModel::Observer {
public:
CookiesViewHandler();
virtual ~CookiesViewHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -66,4 +68,6 @@ class CookiesViewHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(CookiesViewHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_COOKIES_VIEW_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_COOKIES_VIEW_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/core_options_handler.cc b/chrome/browser/ui/webui/options2/core_options_handler2.cc
index 4140233..ee149cf 100644
--- a/chrome/browser/ui/webui/options2/core_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/core_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/core_options_handler.h"
+#include "chrome/browser/ui/webui/options2/core_options_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -31,6 +31,8 @@
using content::UserMetricsAction;
+namespace options2 {
+
CoreOptionsHandler::CoreOptionsHandler()
: handlers_host_(NULL) {
}
@@ -464,3 +466,5 @@ void CoreOptionsHandler::UpdateClearPluginLSOData() {
web_ui_->CallJavascriptFunction(
"OptionsPage.setClearPluginLSODataEnabled", *enabled);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/core_options_handler.h b/chrome/browser/ui/webui/options2/core_options_handler2.h
index e1adb21..4f0fb97 100644
--- a/chrome/browser/ui/webui/options2/core_options_handler.h
+++ b/chrome/browser/ui/webui/options2/core_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
#pragma once
#include <map>
@@ -15,14 +15,16 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
+namespace options2 {
+
// Core options UI handler.
// Handles resource and JS calls common to all options sub-pages.
-class CoreOptionsHandler : public OptionsPage2UIHandler {
+class CoreOptionsHandler : public OptionsPageUIHandler {
public:
CoreOptionsHandler();
virtual ~CoreOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void Initialize() OVERRIDE;
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void Uninitialize() OVERRIDE;
@@ -36,7 +38,7 @@ class CoreOptionsHandler : public OptionsPage2UIHandler {
virtual void RegisterMessages() OVERRIDE;
virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE;
- void set_handlers_host(OptionsPage2UIHandlerHost* handlers_host) {
+ void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) {
handlers_host_ = handlers_host;
}
@@ -138,7 +140,7 @@ class CoreOptionsHandler : public OptionsPage2UIHandler {
void UpdateClearPluginLSOData();
- OptionsPage2UIHandlerHost* handlers_host_;
+ OptionsPageUIHandlerHost* handlers_host_;
PrefChangeRegistrar registrar_;
// Used for asynchronously updating the preference stating whether clearing
@@ -148,4 +150,6 @@ class CoreOptionsHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/font_settings_browsertest.js b/chrome/browser/ui/webui/options2/font_settings2_browsertest.js
index 9800b41..9800b41 100644
--- a/chrome/browser/ui/webui/options2/font_settings_browsertest.js
+++ b/chrome/browser/ui/webui/options2/font_settings2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/font_settings_handler.cc b/chrome/browser/ui/webui/options2/font_settings_handler2.cc
index 2ffef10b..8122a63 100644
--- a/chrome/browser/ui/webui/options2/font_settings_handler.cc
+++ b/chrome/browser/ui/webui/options2/font_settings_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/font_settings_handler.h"
+#include "chrome/browser/ui/webui/options2/font_settings_handler2.h"
#include <string>
@@ -17,7 +17,7 @@
#include "chrome/browser/character_encoding.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/options2/font_settings_utils.h"
+#include "chrome/browser/ui/webui/options2/font_settings_utils2.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_details.h"
@@ -25,6 +25,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
FontSettingsHandler::FontSettingsHandler() {
}
@@ -75,7 +77,7 @@ void FontSettingsHandler::Initialize() {
WebUIMessageHandler* FontSettingsHandler::Attach(WebUI* web_ui) {
// Call through to superclass.
- WebUIMessageHandler* handler = OptionsPage2UIHandler::Attach(web_ui);
+ WebUIMessageHandler* handler = OptionsPageUIHandler::Attach(web_ui);
// Perform validation for saved fonts.
DCHECK(web_ui_);
@@ -209,3 +211,5 @@ void FontSettingsHandler::SetUpMinimumFontSample() {
web_ui_->CallJavascriptFunction("FontSettings.setUpMinimumFontSample",
size_value);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/font_settings_handler.h b/chrome/browser/ui/webui/options2/font_settings_handler2.h
index baedd3b..e93ab58 100644
--- a/chrome/browser/ui/webui/options2/font_settings_handler.h
+++ b/chrome/browser/ui/webui/options2/font_settings_handler2.h
@@ -2,21 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_
#pragma once
#include "chrome/browser/prefs/pref_member.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
#include "content/browser/font_list_async.h"
+namespace options2 {
+
// Font settings overlay page UI handler.
-class FontSettingsHandler : public OptionsPage2UIHandler {
+class FontSettingsHandler : public OptionsPageUIHandler {
public:
FontSettingsHandler();
virtual ~FontSettingsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -52,4 +54,6 @@ class FontSettingsHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/font_settings_utils.h b/chrome/browser/ui/webui/options2/font_settings_utils2.h
index 9fb435c..12b661b 100644
--- a/chrome/browser/ui/webui/options2/font_settings_utils.h
+++ b/chrome/browser/ui/webui/options2/font_settings_utils2.h
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_UTILS_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_UTILS_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_UTILS2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_UTILS2_H_
#pragma once
#include "base/basictypes.h"
class PrefService;
+namespace options2 {
+
// Chrome advanced options utility methods.
class FontSettingsUtilities {
public:
@@ -19,4 +21,6 @@ class FontSettingsUtilities {
DISALLOW_IMPLICIT_CONSTRUCTORS(FontSettingsUtilities);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_UTILS_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_UTILS2_H_
diff --git a/chrome/browser/ui/webui/options2/font_settings_utils_mac.mm b/chrome/browser/ui/webui/options2/font_settings_utils2_mac.mm
index 0d26d83..aa7beeb 100644
--- a/chrome/browser/ui/webui/options2/font_settings_utils_mac.mm
+++ b/chrome/browser/ui/webui/options2/font_settings_utils2_mac.mm
@@ -2,7 +2,7 @@
// 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/options2/font_settings_utils.h"
+#include "chrome/browser/ui/webui/options2/font_settings_utils2.h"
#import <Cocoa/Cocoa.h>
@@ -12,6 +12,8 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/common/pref_names.h"
+namespace options2 {
+
static void ValidateFontFamily(PrefService* prefs,
const char* family_pref_name) {
// The native font settings dialog saved fonts by the font name, rather
@@ -36,3 +38,5 @@ void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
ValidateFontFamily(prefs, prefs::kWebKitSansSerifFontFamily);
ValidateFontFamily(prefs, prefs::kWebKitFixedFontFamily);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/font_settings_utils_win.cc b/chrome/browser/ui/webui/options2/font_settings_utils2_win.cc
index 3c5ff5e..5bff7f8 100644
--- a/chrome/browser/ui/webui/options2/font_settings_utils_win.cc
+++ b/chrome/browser/ui/webui/options2/font_settings_utils2_win.cc
@@ -2,10 +2,13 @@
// 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/options2/font_settings_utils.h"
+#include "chrome/browser/ui/webui/options2/font_settings_utils2.h"
+
+namespace options2 {
// static
void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
// Nothing to do for Windows.
}
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/font_settings_utils_x11.cc b/chrome/browser/ui/webui/options2/font_settings_utils2_x11.cc
index 61c2c6e..2e6a4e0 100644
--- a/chrome/browser/ui/webui/options2/font_settings_utils_x11.cc
+++ b/chrome/browser/ui/webui/options2/font_settings_utils2_x11.cc
@@ -2,9 +2,13 @@
// 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/options2/font_settings_utils.h"
+#include "chrome/browser/ui/webui/options2/font_settings_utils2.h"
+
+namespace options2 {
// static
void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
// Nothing to do for X11.
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/handler_options_handler.cc b/chrome/browser/ui/webui/options2/handler_options_handler2.cc
index 4c4c30f..141e840 100644
--- a/chrome/browser/ui/webui/options2/handler_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/handler_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/handler_options_handler.h"
+#include "chrome/browser/ui/webui/options2/handler_options_handler2.h"
#include <vector>
@@ -16,6 +16,7 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
HandlerOptionsHandler::HandlerOptionsHandler() {
}
@@ -205,3 +206,5 @@ void HandlerOptionsHandler::Observe(
else
NOTREACHED();
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/handler_options_handler.h b/chrome/browser/ui/webui/options2/handler_options_handler2.h
index 4699f82..ea60f43 100644
--- a/chrome/browser/ui/webui/options2/handler_options_handler.h
+++ b/chrome/browser/ui/webui/options2/handler_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_
#include <string>
@@ -16,12 +16,14 @@ namespace base {
class DictionaryValue;
}
-class HandlerOptionsHandler : public OptionsPage2UIHandler {
+namespace options2 {
+
+class HandlerOptionsHandler : public OptionsPageUIHandler {
public:
HandlerOptionsHandler();
virtual ~HandlerOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -73,4 +75,6 @@ class HandlerOptionsHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/import_data_handler.cc b/chrome/browser/ui/webui/options2/import_data_handler2.cc
index 76e5b83..5e5b22b 100644
--- a/chrome/browser/ui/webui/options2/import_data_handler.cc
+++ b/chrome/browser/ui/webui/options2/import_data_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/import_data_handler.h"
+#include "chrome/browser/ui/webui/options2/import_data_handler2.h"
#include <string>
@@ -24,6 +24,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
ImportDataHandler::ImportDataHandler() : importer_host_(NULL),
import_did_succeed_(false) {
}
@@ -175,3 +177,5 @@ void ImportDataHandler::ImportEnded() {
web_ui_->CallJavascriptFunction("ImportDataOverlay.dismiss");
}
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/import_data_handler.h b/chrome/browser/ui/webui/options2/import_data_handler2.h
index f537c54..712dd5f 100644
--- a/chrome/browser/ui/webui/options2/import_data_handler.h
+++ b/chrome/browser/ui/webui/options2/import_data_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_
#pragma once
#include "base/basictypes.h"
@@ -17,15 +17,17 @@
class ImporterHost;
class ImporterList;
+namespace options2 {
+
// Chrome personal stuff import data overlay UI handler.
-class ImportDataHandler : public OptionsPage2UIHandler,
+class ImportDataHandler : public OptionsPageUIHandler,
public importer::ImporterListObserver,
public importer::ImporterProgressObserver {
public:
ImportDataHandler();
virtual ~ImportDataHandler();
- // OptionsPage2UIHandler:
+ // OptionsPageUIHandler:
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -56,4 +58,6 @@ class ImportDataHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(ImportDataHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_IMPORT_DATA_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/language_options_browsertest.js b/chrome/browser/ui/webui/options2/language_options2_browsertest.js
index 4f1b87c..4f1b87c 100644
--- a/chrome/browser/ui/webui/options2/language_options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/language_options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/language_options_handler.cc b/chrome/browser/ui/webui/options2/language_options_handler2.cc
index 64e4d8c..8269191 100644
--- a/chrome/browser/ui/webui/options2/language_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/language_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/language_options_handler.h"
+#include "chrome/browser/ui/webui/options2/language_options_handler2.h"
#include <map>
#include <string>
@@ -27,6 +27,8 @@
using content::UserMetricsAction;
+namespace options2 {
+
LanguageOptionsHandler::LanguageOptionsHandler() {
}
@@ -116,3 +118,5 @@ void LanguageOptionsHandler::RestartCallback(const ListValue* args) {
content::RecordAction(UserMetricsAction("LanguageOptions_Restart"));
BrowserList::AttemptRestart();
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/language_options_handler.h b/chrome/browser/ui/webui/options2/language_options_handler2.h
index 1131b32..1e76a34 100644
--- a/chrome/browser/ui/webui/options2/language_options_handler.h
+++ b/chrome/browser/ui/webui/options2/language_options_handler2.h
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER2_H_
#pragma once
-#include "chrome/browser/ui/webui/options2/language_options_handler_common.h"
+#include "chrome/browser/ui/webui/options2/language_options_handler_common2.h"
+
+namespace options2 {
// Language options UI page handler for non-Chrome OS platforms. For Chrome OS,
// see chromeos::CrosLanguageOptionsHandler.
@@ -41,4 +43,6 @@ class LanguageOptionsHandler : public LanguageOptionsHandlerCommon {
DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/language_options_handler_unittest.cc b/chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc
index c889818..083e020 100644
--- a/chrome/browser/ui/webui/options2/language_options_handler_unittest.cc
+++ b/chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc
@@ -2,7 +2,7 @@
// 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/options2/language_options_handler.h"
+#include "chrome/browser/ui/webui/options2/language_options_handler2.h"
#include <string>
@@ -13,7 +13,7 @@
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/input_method/ibus_controller.h"
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
-#include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h"
#endif // defined(OS_CHROMEOS)
#if defined(OS_CHROMEOS)
diff --git a/chrome/browser/ui/webui/options2/language_options_handler_common.cc b/chrome/browser/ui/webui/options2/language_options_handler_common2.cc
index cff8ee7..341b1a9 100644
--- a/chrome/browser/ui/webui/options2/language_options_handler_common.cc
+++ b/chrome/browser/ui/webui/options2/language_options_handler_common2.cc
@@ -2,7 +2,7 @@
// 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/options2/language_options_handler_common.h"
+#include "chrome/browser/ui/webui/options2/language_options_handler_common2.h"
#include <map>
#include <string>
@@ -28,6 +28,8 @@
using content::UserMetricsAction;
+namespace options2 {
+
LanguageOptionsHandlerCommon::LanguageOptionsHandlerCommon() {
}
@@ -166,3 +168,5 @@ void LanguageOptionsHandlerCommon::SpellCheckLanguageChangeCallback(
"LanguageOptions_SpellCheckLanguageChange_%s", language_code.c_str());
content::RecordComputedAction(action);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/language_options_handler_common.h b/chrome/browser/ui/webui/options2/language_options_handler_common2.h
index 562a722..4eae484 100644
--- a/chrome/browser/ui/webui/options2/language_options_handler_common.h
+++ b/chrome/browser/ui/webui/options2/language_options_handler_common2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON2_H_
#pragma once
#include "chrome/browser/ui/webui/options2/options_ui2.h"
@@ -13,14 +13,16 @@ class DictionaryValue;
class ListValue;
}
+namespace options2 {
+
// The base class for language options page UI handlers. This class has code
// common to the Chrome OS and non-Chrome OS implementation of the handler.
-class LanguageOptionsHandlerCommon : public OptionsPage2UIHandler {
+class LanguageOptionsHandlerCommon : public OptionsPageUIHandler {
public:
LanguageOptionsHandlerCommon();
virtual ~LanguageOptionsHandlerCommon();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -66,4 +68,6 @@ class LanguageOptionsHandlerCommon : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandlerCommon);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON2_H_
diff --git a/chrome/browser/ui/webui/options2/manage_profile_handler.cc b/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
index 4c29788..ada5fb9 100644
--- a/chrome/browser/ui/webui/options2/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/manage_profile_handler.h"
+#include "chrome/browser/ui/webui/options2/manage_profile_handler2.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -22,6 +22,8 @@
#include "content/public/browser/notification_service.h"
#include "grit/generated_resources.h"
+namespace options2 {
+
ManageProfileHandler::ManageProfileHandler() {
}
@@ -78,7 +80,7 @@ void ManageProfileHandler::Observe(
SendProfileNames();
SendProfileIcons();
} else {
- OptionsPage2UIHandler::Observe(type, source, details);
+ OptionsPageUIHandler::Observe(type, source, details);
}
}
@@ -298,3 +300,5 @@ void ManageProfileHandler::ProfileIconSelectionChanged(
web_ui_->CallJavascriptFunction("ManageProfileOverlay.setProfileName",
gaia_name_value);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/manage_profile_handler.h b/chrome/browser/ui/webui/options2/manage_profile_handler2.h
index 8e79f6a..2790b3e 100644
--- a/chrome/browser/ui/webui/options2/manage_profile_handler.h
+++ b/chrome/browser/ui/webui/options2/manage_profile_handler2.h
@@ -2,19 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
#pragma once
#include "chrome/browser/ui/webui/options2/options_ui2.h"
+namespace options2 {
+
// Chrome personal stuff profiles manage overlay UI handler.
-class ManageProfileHandler : public OptionsPage2UIHandler {
+class ManageProfileHandler : public OptionsPageUIHandler {
public:
ManageProfileHandler();
virtual ~ManageProfileHandler();
- // OptionsPage2UIHandler:
+ // OptionsPageUIHandler:
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -79,4 +81,6 @@ class ManageProfileHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/options_browsertest.js b/chrome/browser/ui/webui/options2/options2_browsertest.js
index 9be9041..9be9041 100644
--- a/chrome/browser/ui/webui/options2/options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/options_sync_setup_handler.cc b/chrome/browser/ui/webui/options2/options_sync_setup_handler2.cc
index 81e114e..9e622dc 100644
--- a/chrome/browser/ui/webui/options2/options_sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/options2/options_sync_setup_handler2.cc
@@ -2,11 +2,13 @@
// 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/options2/options_sync_setup_handler.h"
+#include "chrome/browser/ui/webui/options2/options_sync_setup_handler2.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
+namespace options2 {
+
OptionsSyncSetupHandler::OptionsSyncSetupHandler(
ProfileManager* profile_manager) : SyncSetupHandler2(profile_manager) {
}
@@ -53,3 +55,5 @@ void OptionsSyncSetupHandler::ShowSetupUI() {
scoped_ptr<Value> page(Value::CreateStringValue("syncSetup"));
web_ui_->CallJavascriptFunction("OptionsPage.navigateToPage", *page);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/options_sync_setup_handler.h b/chrome/browser/ui/webui/options2/options_sync_setup_handler2.h
index a61df17..25631c1 100644
--- a/chrome/browser/ui/webui/options2/options_sync_setup_handler.h
+++ b/chrome/browser/ui/webui/options2/options_sync_setup_handler2.h
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_SYNC_SETUP_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_SYNC_SETUP_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_SYNC_SETUP_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_SYNC_SETUP_HANDLER2_H_
#include "chrome/browser/ui/webui/sync_setup_handler2.h"
+namespace options2 {
+
// The handler for Javascript messages related to sync setup UI in the options
// page.
class OptionsSyncSetupHandler : public SyncSetupHandler2 {
@@ -19,4 +21,6 @@ class OptionsSyncSetupHandler : public SyncSetupHandler2 {
virtual void ShowSetupUI() OVERRIDE;
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_SYNC_SETUP_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_SYNC_SETUP_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/options_ui2.cc b/chrome/browser/ui/webui/options2/options_ui2.cc
index c30742c..4804648 100644
--- a/chrome/browser/ui/webui/options2/options_ui2.cc
+++ b/chrome/browser/ui/webui/options2/options_ui2.cc
@@ -19,24 +19,24 @@
#include "chrome/browser/browser_about_handler.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/options2/advanced_options_handler.h"
-#include "chrome/browser/ui/webui/options2/autofill_options_handler.h"
-#include "chrome/browser/ui/webui/options2/browser_options_handler.h"
-#include "chrome/browser/ui/webui/options2/clear_browser_data_handler.h"
-#include "chrome/browser/ui/webui/options2/content_settings_handler.h"
-#include "chrome/browser/ui/webui/options2/cookies_view_handler.h"
-#include "chrome/browser/ui/webui/options2/core_options_handler.h"
-#include "chrome/browser/ui/webui/options2/font_settings_handler.h"
-#include "chrome/browser/ui/webui/options2/handler_options_handler.h"
-#include "chrome/browser/ui/webui/options2/import_data_handler.h"
-#include "chrome/browser/ui/webui/options2/language_options_handler.h"
-#include "chrome/browser/ui/webui/options2/manage_profile_handler.h"
-#include "chrome/browser/ui/webui/options2/options_sync_setup_handler.h"
-#include "chrome/browser/ui/webui/options2/password_manager_handler.h"
-#include "chrome/browser/ui/webui/options2/personal_options_handler.h"
-#include "chrome/browser/ui/webui/options2/search_engine_manager_handler.h"
-#include "chrome/browser/ui/webui/options2/stop_syncing_handler.h"
-#include "chrome/browser/ui/webui/options2/web_intents_settings_handler.h"
+#include "chrome/browser/ui/webui/options2/advanced_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/autofill_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/browser_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/clear_browser_data_handler2.h"
+#include "chrome/browser/ui/webui/options2/content_settings_handler2.h"
+#include "chrome/browser/ui/webui/options2/cookies_view_handler2.h"
+#include "chrome/browser/ui/webui/options2/core_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/font_settings_handler2.h"
+#include "chrome/browser/ui/webui/options2/handler_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/import_data_handler2.h"
+#include "chrome/browser/ui/webui/options2/language_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/manage_profile_handler2.h"
+#include "chrome/browser/ui/webui/options2/options_sync_setup_handler2.h"
+#include "chrome/browser/ui/webui/options2/password_manager_handler2.h"
+#include "chrome/browser/ui/webui/options2/personal_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/search_engine_manager_handler2.h"
+#include "chrome/browser/ui/webui/options2/stop_syncing_handler2.h"
+#include "chrome/browser/ui/webui/options2/web_intents_settings_handler2.h"
#include "chrome/browser/ui/webui/theme_source.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/time_format.h"
@@ -56,43 +56,45 @@
#include "ui/base/resource/resource_bundle.h"
#if defined(OS_CHROMEOS)
-#include "chrome/browser/ui/webui/options2/chromeos/about_page_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/proxy_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/system_options_handler.h"
-#include "chrome/browser/ui/webui/options2/chromeos/user_image_source.h"
-#include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/chromeos/about_page_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h"
+#include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h"
#endif
#if defined(USE_NSS)
-#include "chrome/browser/ui/webui/options2/certificate_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h"
#endif
+namespace options2 {
+
static const char kLocalizedStringsFile[] = "strings.js";
static const char kOptionsBundleJsFile[] = "options_bundle.js";
////////////////////////////////////////////////////////////////////////////////
//
-// Options2UIHTMLSource
+// OptionsUIHTMLSource
//
////////////////////////////////////////////////////////////////////////////////
-class Options2UIHTMLSource : public ChromeURLDataManager::DataSource {
+class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource {
public:
// The constructor takes over ownership of |localized_strings|.
- explicit Options2UIHTMLSource(DictionaryValue* localized_strings);
- virtual ~Options2UIHTMLSource();
+ explicit OptionsUIHTMLSource(DictionaryValue* localized_strings);
+ virtual ~OptionsUIHTMLSource();
// Called when the network layer has requested a resource underneath
// the path we registered.
@@ -105,18 +107,18 @@ class Options2UIHTMLSource : public ChromeURLDataManager::DataSource {
// Localized strings collection.
scoped_ptr<DictionaryValue> localized_strings_;
- DISALLOW_COPY_AND_ASSIGN(Options2UIHTMLSource);
+ DISALLOW_COPY_AND_ASSIGN(OptionsUIHTMLSource);
};
-Options2UIHTMLSource::Options2UIHTMLSource(DictionaryValue* localized_strings)
+OptionsUIHTMLSource::OptionsUIHTMLSource(DictionaryValue* localized_strings)
: DataSource(chrome::kChromeUISettingsFrameHost, MessageLoop::current()) {
DCHECK(localized_strings);
localized_strings_.reset(localized_strings);
}
-Options2UIHTMLSource::~Options2UIHTMLSource() {}
+OptionsUIHTMLSource::~OptionsUIHTMLSource() {}
-void Options2UIHTMLSource::StartDataRequest(const std::string& path,
+void OptionsUIHTMLSource::StartDataRequest(const std::string& path,
bool is_incognito,
int request_id) {
scoped_refptr<RefCountedMemory> response_bytes;
@@ -140,7 +142,7 @@ void Options2UIHTMLSource::StartDataRequest(const std::string& path,
SendResponse(request_id, response_bytes);
}
-std::string Options2UIHTMLSource::GetMimeType(const std::string& path) const {
+std::string OptionsUIHTMLSource::GetMimeType(const std::string& path) const {
if (path == kLocalizedStringsFile || path == kOptionsBundleJsFile)
return "application/javascript";
@@ -149,22 +151,22 @@ std::string Options2UIHTMLSource::GetMimeType(const std::string& path) const {
////////////////////////////////////////////////////////////////////////////////
//
-// OptionsPage2UIHandler
+// OptionsPageUIHandler
//
////////////////////////////////////////////////////////////////////////////////
-OptionsPage2UIHandler::OptionsPage2UIHandler() {
+OptionsPageUIHandler::OptionsPageUIHandler() {
}
-OptionsPage2UIHandler::~OptionsPage2UIHandler() {
+OptionsPageUIHandler::~OptionsPageUIHandler() {
}
-bool OptionsPage2UIHandler::IsEnabled() {
+bool OptionsPageUIHandler::IsEnabled() {
return true;
}
// static
-void OptionsPage2UIHandler::RegisterStrings(
+void OptionsPageUIHandler::RegisterStrings(
DictionaryValue* localized_strings,
const OptionsStringResource* resources,
size_t length) {
@@ -174,7 +176,7 @@ void OptionsPage2UIHandler::RegisterStrings(
}
}
-void OptionsPage2UIHandler::RegisterTitle(DictionaryValue* localized_strings,
+void OptionsPageUIHandler::RegisterTitle(DictionaryValue* localized_strings,
const std::string& variable_name,
int title_id) {
localized_strings->SetString(variable_name,
@@ -187,18 +189,18 @@ void OptionsPage2UIHandler::RegisterTitle(DictionaryValue* localized_strings,
////////////////////////////////////////////////////////////////////////////////
//
-// Options2UI
+// OptionsUI
//
////////////////////////////////////////////////////////////////////////////////
-Options2UI::Options2UI(TabContents* contents)
+OptionsUI::OptionsUI(TabContents* contents)
: ChromeWebUI(contents),
initialized_handlers_(false) {
DictionaryValue* localized_strings = new DictionaryValue();
CoreOptionsHandler* core_handler;
#if defined(OS_CHROMEOS)
- core_handler = new chromeos::CoreChromeOSOptionsHandler();
+ core_handler = new chromeos::options2::CoreChromeOSOptionsHandler();
#else
core_handler = new CoreOptionsHandler();
#endif
@@ -215,7 +217,7 @@ Options2UI::Options2UI(TabContents* contents)
AddOptionsPageUIHandler(localized_strings, new WebIntentsSettingsHandler());
#if defined(OS_CHROMEOS)
AddOptionsPageUIHandler(localized_strings,
- new chromeos::CrosLanguageOptionsHandler());
+ new chromeos::options2::CrosLanguageOptionsHandler());
#else
AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler());
#endif
@@ -229,30 +231,33 @@ Options2UI::Options2UI(TabContents* contents)
g_browser_process->profile_manager()));
#if defined(OS_CHROMEOS)
AddOptionsPageUIHandler(localized_strings,
- new chromeos::AboutPageHandler());
+ new chromeos::options2::AboutPageHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::AccountsOptionsHandler());
+ new chromeos::options2::AccountsOptionsHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::BluetoothOptionsHandler());
+ new chromeos::options2::BluetoothOptionsHandler());
AddOptionsPageUIHandler(localized_strings, new InternetOptionsHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::LanguageChewingHandler());
- AddOptionsPageUIHandler(localized_strings,
- new chromeos::LanguageCustomizeModifierKeysHandler());
- AddOptionsPageUIHandler(localized_strings,
- new chromeos::LanguageHangulHandler());
+ new chromeos::options2::LanguageChewingHandler());
+ AddOptionsPageUIHandler(
+ localized_strings,
+ new chromeos::options2::LanguageCustomizeModifierKeysHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::LanguageMozcHandler());
+ new chromeos::options2::LanguageHangulHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::LanguagePinyinHandler());
+ new chromeos::options2::LanguageMozcHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::VirtualKeyboardManagerHandler());
+ new chromeos::options2::LanguagePinyinHandler());
+ AddOptionsPageUIHandler(
+ localized_strings,
+ new chromeos::options2::VirtualKeyboardManagerHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::ProxyHandler());
+ new chromeos::options2::ProxyHandler());
+ AddOptionsPageUIHandler(
+ localized_strings,
+ new chromeos::options2::ChangePictureOptionsHandler());
AddOptionsPageUIHandler(localized_strings,
- new chromeos::ChangePictureOptionsHandler());
- AddOptionsPageUIHandler(localized_strings,
- new chromeos::StatsOptionsHandler());
+ new chromeos::options2::StatsOptionsHandler());
AddOptionsPageUIHandler(localized_strings, new SystemOptionsHandler());
#endif
#if defined(USE_NSS)
@@ -261,8 +266,8 @@ Options2UI::Options2UI(TabContents* contents)
AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler());
// |localized_strings| ownership is taken over by this constructor.
- Options2UIHTMLSource* html_source =
- new Options2UIHTMLSource(localized_strings);
+ OptionsUIHTMLSource* html_source =
+ new OptionsUIHTMLSource(localized_strings);
// Set up the chrome://settings-frame/ source.
Profile* profile = Profile::FromBrowserContext(contents->browser_context());
@@ -274,34 +279,34 @@ Options2UI::Options2UI(TabContents* contents)
#if defined(OS_CHROMEOS)
// Set up the chrome://userimage/ source.
- chromeos::UserImageSource* user_image_source =
- new chromeos::UserImageSource();
+ chromeos::options2::UserImageSource* user_image_source =
+ new chromeos::options2::UserImageSource();
profile->GetChromeURLDataManager()->AddDataSource(user_image_source);
#endif
}
-Options2UI::~Options2UI() {
+OptionsUI::~OptionsUI() {
// Uninitialize all registered handlers. The base class owns them and it will
// eventually delete them. Skip over the generic handler.
for (std::vector<WebUIMessageHandler*>::iterator iter = handlers_.begin() + 1;
iter != handlers_.end();
++iter) {
- static_cast<OptionsPage2UIHandler*>(*iter)->Uninitialize();
+ static_cast<OptionsPageUIHandler*>(*iter)->Uninitialize();
}
}
// Override.
-void Options2UI::RenderViewCreated(RenderViewHost* render_view_host) {
+void OptionsUI::RenderViewCreated(RenderViewHost* render_view_host) {
SetCommandLineString(render_view_host);
ChromeWebUI::RenderViewCreated(render_view_host);
}
-void Options2UI::RenderViewReused(RenderViewHost* render_view_host) {
+void OptionsUI::RenderViewReused(RenderViewHost* render_view_host) {
SetCommandLineString(render_view_host);
ChromeWebUI::RenderViewReused(render_view_host);
}
-void Options2UI::DidBecomeActiveForReusedRenderView() {
+void OptionsUI::DidBecomeActiveForReusedRenderView() {
// When the renderer is re-used (e.g., for back/forward navigation within
// options), the handlers are torn down and rebuilt, so are no longer
// initialized, but the web page's DOM may remain intact, in which case onload
@@ -314,12 +319,12 @@ void Options2UI::DidBecomeActiveForReusedRenderView() {
}
// static
-RefCountedMemory* Options2UI::GetFaviconResourceBytes() {
+RefCountedMemory* OptionsUI::GetFaviconResourceBytes() {
return ResourceBundle::GetSharedInstance().
LoadDataResourceBytes(IDR_SETTINGS_FAVICON);
}
-void Options2UI::InitializeHandlers() {
+void OptionsUI::InitializeHandlers() {
DCHECK(!GetProfile()->IsOffTheRecord() || Profile::IsGuestSession());
// The reinitialize call from DidBecomeActiveForReusedRenderView end up being
@@ -333,13 +338,13 @@ void Options2UI::InitializeHandlers() {
std::vector<WebUIMessageHandler*>::iterator iter;
// Skip over the generic handler.
for (iter = handlers_.begin() + 1; iter != handlers_.end(); ++iter) {
- (static_cast<OptionsPage2UIHandler*>(*iter))->Initialize();
+ (static_cast<OptionsPageUIHandler*>(*iter))->Initialize();
}
}
-void Options2UI::AddOptionsPageUIHandler(DictionaryValue* localized_strings,
- OptionsPage2UIHandler* handler_raw) {
- scoped_ptr<OptionsPage2UIHandler> handler(handler_raw);
+void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings,
+ OptionsPageUIHandler* handler_raw) {
+ scoped_ptr<OptionsPageUIHandler> handler(handler_raw);
DCHECK(handler.get());
// Add only if handler's service is enabled.
if (handler->IsEnabled()) {
@@ -349,7 +354,7 @@ void Options2UI::AddOptionsPageUIHandler(DictionaryValue* localized_strings,
}
}
-void Options2UI::SetCommandLineString(RenderViewHost* render_view_host) {
+void OptionsUI::SetCommandLineString(RenderViewHost* render_view_host) {
std::string command_line_string;
#if defined(OS_WIN)
@@ -362,3 +367,5 @@ void Options2UI::SetCommandLineString(RenderViewHost* render_view_host) {
render_view_host->SetWebUIProperty("commandLineString", command_line_string);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/options_ui2.h b/chrome/browser/ui/webui/options2/options_ui2.h
index 9a7a759..352b5df 100644
--- a/chrome/browser/ui/webui/options2/options_ui2.h
+++ b/chrome/browser/ui/webui/options2/options_ui2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_
#pragma once
#include <string>
@@ -16,12 +16,14 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_types.h"
+namespace options2 {
+
// The base class handler of Javascript messages of options pages.
-class OptionsPage2UIHandler : public WebUIMessageHandler,
+class OptionsPageUIHandler : public WebUIMessageHandler,
public content::NotificationObserver {
public:
- OptionsPage2UIHandler();
- virtual ~OptionsPage2UIHandler();
+ OptionsPageUIHandler();
+ virtual ~OptionsPageUIHandler();
// Is this handler enabled?
virtual bool IsEnabled();
@@ -64,25 +66,25 @@ class OptionsPage2UIHandler : public WebUIMessageHandler,
content::NotificationRegistrar registrar_;
private:
- DISALLOW_COPY_AND_ASSIGN(OptionsPage2UIHandler);
+ DISALLOW_COPY_AND_ASSIGN(OptionsPageUIHandler);
};
-// An interface for common operations that a host of OptionsPage2UIHandlers
+// An interface for common operations that a host of OptionsPageUIHandlers
// should provide.
-class OptionsPage2UIHandlerHost {
+class OptionsPageUIHandlerHost {
public:
virtual void InitializeHandlers() = 0;
protected:
- virtual ~OptionsPage2UIHandlerHost() {}
+ virtual ~OptionsPageUIHandlerHost() {}
};
// The WebUI for chrome:settings-frame.
-class Options2UI : public ChromeWebUI,
- public OptionsPage2UIHandlerHost {
+class OptionsUI : public ChromeWebUI,
+ public OptionsPageUIHandlerHost {
public:
- explicit Options2UI(TabContents* contents);
- virtual ~Options2UI();
+ explicit OptionsUI(TabContents* contents);
+ virtual ~OptionsUI();
static RefCountedMemory* GetFaviconResourceBytes();
@@ -91,13 +93,13 @@ class Options2UI : public ChromeWebUI,
virtual void RenderViewReused(RenderViewHost* render_view_host) OVERRIDE;
virtual void DidBecomeActiveForReusedRenderView() OVERRIDE;
- // Overridden from OptionsPage2UIHandlerHost:
+ // Overridden from OptionsPageUIHandlerHost:
virtual void InitializeHandlers() OVERRIDE;
private:
// Adds OptionsPageUiHandler to the handlers list if handler is enabled.
void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings,
- OptionsPage2UIHandler* handler);
+ OptionsPageUIHandler* handler);
// Sets the WebUI CommandLineString property with arguments passed while
// launching chrome.
@@ -105,7 +107,9 @@ class Options2UI : public ChromeWebUI,
bool initialized_handlers_;
- DISALLOW_COPY_AND_ASSIGN(Options2UI);
+ DISALLOW_COPY_AND_ASSIGN(OptionsUI);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_
diff --git a/chrome/browser/ui/webui/options2/options_ui_uitest.cc b/chrome/browser/ui/webui/options2/options_ui2_uitest.cc
index b292213..afebd61 100644
--- a/chrome/browser/ui/webui/options2/options_ui_uitest.cc
+++ b/chrome/browser/ui/webui/options2/options_ui2_uitest.cc
@@ -2,7 +2,7 @@
// 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/options2/options_ui_uitest.h"
+#include "chrome/browser/ui/webui/options2/options_ui2_uitest.h"
#include "base/string16.h"
#include "base/utf_string_conversions.h"
@@ -13,6 +13,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
OptionsUITest::OptionsUITest() {
dom_automation_enabled_ = true;
}
@@ -63,3 +65,5 @@ TEST_F(OptionsUITest, LoadOptionsByURL) {
VerifyNavbar(tab);
VerifySections(tab);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/options_ui_uitest.h b/chrome/browser/ui/webui/options2/options_ui2_uitest.h
index 3cc6806..e184c4b 100644
--- a/chrome/browser/ui/webui/options2/options_ui_uitest.h
+++ b/chrome/browser/ui/webui/options2/options_ui2_uitest.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_UITEST_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_UITEST_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_UITEST_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_UITEST_H_
#pragma once
#include "base/memory/scoped_ptr.h"
@@ -11,6 +11,8 @@
class TabProxy;
+namespace options2 {
+
class OptionsUITest : public UITest {
public:
OptionsUITest();
@@ -35,4 +37,6 @@ class OptionsUITest : public UITest {
void VerifySections(scoped_refptr<TabProxy> tab);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_UITEST_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_UITEST_H_
diff --git a/chrome/browser/ui/webui/options2/password_manager_browsertest.js b/chrome/browser/ui/webui/options2/password_manager2_browsertest.js
index 98c632d..98c632d 100644
--- a/chrome/browser/ui/webui/options2/password_manager_browsertest.js
+++ b/chrome/browser/ui/webui/options2/password_manager2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/password_manager_handler.cc b/chrome/browser/ui/webui/options2/password_manager_handler2.cc
index 29d45c0..4951962e 100644
--- a/chrome/browser/ui/webui/options2/password_manager_handler.cc
+++ b/chrome/browser/ui/webui/options2/password_manager_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/password_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/password_manager_handler2.h"
#include "base/bind.h"
#include "base/string_number_conversions.h"
@@ -22,6 +22,8 @@
#include "ui/base/l10n/l10n_util.h"
#include "webkit/forms/password_form.h"
+namespace options2 {
+
PasswordManagerHandler::PasswordManagerHandler()
: ALLOW_THIS_IN_INITIALIZER_LIST(populater_(this)),
ALLOW_THIS_IN_INITIALIZER_LIST(exception_populater_(this)) {
@@ -131,7 +133,7 @@ void PasswordManagerHandler::Observe(
}
}
- OptionsPage2UIHandler::Observe(type, source, details);
+ OptionsPageUIHandler::Observe(type, source, details);
}
void PasswordManagerHandler::UpdatePasswordLists(const ListValue* args) {
@@ -289,3 +291,5 @@ void PasswordManagerHandler::PasswordExceptionListPopulater::
result.begin(), result.end());
page_->SetPasswordExceptionList();
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/password_manager_handler.h b/chrome/browser/ui/webui/options2/password_manager_handler2.h
index 475c431..76f91c7 100644
--- a/chrome/browser/ui/webui/options2/password_manager_handler.h
+++ b/chrome/browser/ui/webui/options2/password_manager_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_PASSWORD_MANAGER_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_PASSWORD_MANAGER_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_PASSWORD_MANAGER_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_PASSWORD_MANAGER_HANDLER2_H_
#include <string>
#include <vector>
@@ -20,13 +20,15 @@ struct PasswordForm;
}
}
-class PasswordManagerHandler : public OptionsPage2UIHandler,
+namespace options2 {
+
+class PasswordManagerHandler : public OptionsPageUIHandler,
public PasswordStore::Observer {
public:
PasswordManagerHandler();
virtual ~PasswordManagerHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -132,4 +134,6 @@ class PasswordManagerHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_PASSWORD_MANAGER_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_PASSWORD_MANAGER_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/personal_options_browsertest.js b/chrome/browser/ui/webui/options2/personal_options2_browsertest.js
index 222adfa..222adfa 100644
--- a/chrome/browser/ui/webui/options2/personal_options_browsertest.js
+++ b/chrome/browser/ui/webui/options2/personal_options2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/personal_options_handler.cc b/chrome/browser/ui/webui/options2/personal_options_handler2.cc
index 0a2a367..c756cc7 100644
--- a/chrome/browser/ui/webui/options2/personal_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/personal_options_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/personal_options_handler.h"
+#include "chrome/browser/ui/webui/options2/personal_options_handler2.h"
#include <string>
@@ -55,6 +55,8 @@
using content::UserMetricsAction;
+namespace options2 {
+
PersonalOptionsHandler::PersonalOptionsHandler() {
multiprofile_ = ProfileManager::IsMultipleProfilesEnabled();
#if defined(OS_CHROMEOS)
@@ -245,7 +247,7 @@ void PersonalOptionsHandler::Observe(
UpdateAccountPicture();
#endif
} else {
- OptionsPage2UIHandler::Observe(type, source, details);
+ OptionsPageUIHandler::Observe(type, source, details);
}
}
@@ -442,3 +444,5 @@ void PersonalOptionsHandler::SendProfilesInfo() {
void PersonalOptionsHandler::CreateProfile(const ListValue* args) {
ProfileManager::CreateMultiProfileAsync();
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/personal_options_handler.h b/chrome/browser/ui/webui/options2/personal_options_handler2.h
index 4ffe0b6..8420d39 100644
--- a/chrome/browser/ui/webui/options2/personal_options_handler.h
+++ b/chrome/browser/ui/webui/options2/personal_options_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER2_H_
#pragma once
#include "base/basictypes.h"
@@ -13,14 +13,16 @@
#include "content/public/browser/notification_registrar.h"
#endif
+namespace options2 {
+
// Chrome personal options page UI handler.
-class PersonalOptionsHandler : public OptionsPage2UIHandler,
+class PersonalOptionsHandler : public OptionsPageUIHandler,
public ProfileSyncServiceObserver {
public:
PersonalOptionsHandler();
virtual ~PersonalOptionsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
virtual void Initialize() OVERRIDE;
@@ -67,4 +69,6 @@ class PersonalOptionsHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/search_engine_manager_browsertest.js b/chrome/browser/ui/webui/options2/search_engine_manager2_browsertest.js
index 9fe2165..9fe2165 100644
--- a/chrome/browser/ui/webui/options2/search_engine_manager_browsertest.js
+++ b/chrome/browser/ui/webui/options2/search_engine_manager2_browsertest.js
diff --git a/chrome/browser/ui/webui/options2/search_engine_manager_handler.cc b/chrome/browser/ui/webui/options2/search_engine_manager_handler2.cc
index 1e289d8..d3b7be9 100644
--- a/chrome/browser/ui/webui/options2/search_engine_manager_handler.cc
+++ b/chrome/browser/ui/webui/options2/search_engine_manager_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/search_engine_manager_handler.h"
+#include "chrome/browser/ui/webui/options2/search_engine_manager_handler2.h"
#include "base/bind.h"
#include "base/string_number_conversions.h"
@@ -30,6 +30,8 @@ enum EngineInfoIndexes {
}; // namespace
+namespace options2 {
+
SearchEngineManagerHandler::SearchEngineManagerHandler() {
}
@@ -311,3 +313,5 @@ void SearchEngineManagerHandler::EditCompleted(const ListValue* args) {
}
edit_controller_->AcceptAddOrEdit(name, keyword, url);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/search_engine_manager_handler.h b/chrome/browser/ui/webui/options2/search_engine_manager_handler2.h
index aa6815d..fae21dc 100644
--- a/chrome/browser/ui/webui/options2/search_engine_manager_handler.h
+++ b/chrome/browser/ui/webui/options2/search_engine_manager_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_
#include "chrome/browser/ui/search_engines/edit_search_engine_controller.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
@@ -12,7 +12,9 @@
class Extension;
class KeywordEditorController;
-class SearchEngineManagerHandler : public OptionsPage2UIHandler,
+namespace options2 {
+
+class SearchEngineManagerHandler : public OptionsPageUIHandler,
public ui::TableModelObserver,
public EditSearchEngineControllerDelegate {
public:
@@ -21,7 +23,7 @@ class SearchEngineManagerHandler : public OptionsPage2UIHandler,
virtual void Initialize() OVERRIDE;
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -76,4 +78,6 @@ class SearchEngineManagerHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/stop_syncing_handler.cc b/chrome/browser/ui/webui/options2/stop_syncing_handler2.cc
index 550cc4c..3e67b8ee 100644
--- a/chrome/browser/ui/webui/options2/stop_syncing_handler.cc
+++ b/chrome/browser/ui/webui/options2/stop_syncing_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/stop_syncing_handler.h"
+#include "chrome/browser/ui/webui/options2/stop_syncing_handler2.h"
#include "base/basictypes.h"
#include "base/bind.h"
@@ -17,6 +17,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
StopSyncingHandler::StopSyncingHandler() {
}
@@ -52,3 +54,5 @@ void StopSyncingHandler::StopSyncing(const ListValue* args){
ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS);
}
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/stop_syncing_handler.h b/chrome/browser/ui/webui/options2/stop_syncing_handler2.h
index 2c8b626..67f78f9 100644
--- a/chrome/browser/ui/webui/options2/stop_syncing_handler.h
+++ b/chrome/browser/ui/webui/options2/stop_syncing_handler2.h
@@ -2,18 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_STOP_SYNCING_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_STOP_SYNCING_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_STOP_SYNCING_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_STOP_SYNCING_HANDLER2_H_
#include "chrome/browser/ui/webui/options2/options_ui2.h"
+namespace options2 {
+
// Chrome personal stuff stop syncing overlay UI handler.
-class StopSyncingHandler : public OptionsPage2UIHandler {
+class StopSyncingHandler : public OptionsPageUIHandler {
public:
StopSyncingHandler();
virtual ~StopSyncingHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
@@ -26,4 +28,6 @@ class StopSyncingHandler : public OptionsPage2UIHandler {
DISALLOW_COPY_AND_ASSIGN(StopSyncingHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_STOP_SYNCING_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_STOP_SYNCING_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/options2/web_intents_settings_handler.cc b/chrome/browser/ui/webui/options2/web_intents_settings_handler2.cc
index 874cf834..c6f7a21 100644
--- a/chrome/browser/ui/webui/options2/web_intents_settings_handler.cc
+++ b/chrome/browser/ui/webui/options2/web_intents_settings_handler2.cc
@@ -2,7 +2,7 @@
// 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/options2/web_intents_settings_handler.h"
+#include "chrome/browser/ui/webui/options2/web_intents_settings_handler2.h"
#include "base/bind.h"
#include "base/utf_string_conversions.h"
@@ -21,6 +21,8 @@
#include "net/url_request/url_request_context_getter.h"
#include "ui/base/l10n/l10n_util.h"
+namespace options2 {
+
WebIntentsSettingsHandler::WebIntentsSettingsHandler()
: web_intents_registry_(NULL),
batch_update_(false) {
@@ -158,3 +160,5 @@ void WebIntentsSettingsHandler::SendChildren(WebIntentsTreeNode* parent) {
web_ui_->CallJavascriptFunction("IntentsView.loadChildren", args);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/options2/web_intents_settings_handler.h b/chrome/browser/ui/webui/options2/web_intents_settings_handler2.h
index 186b295..2f2d19a 100644
--- a/chrome/browser/ui/webui/options2/web_intents_settings_handler.h
+++ b/chrome/browser/ui/webui/options2/web_intents_settings_handler2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_WEB_INTENTS_SETTINGS_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_WEB_INTENTS_SETTINGS_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_WEB_INTENTS_SETTINGS_HANDLER2_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_WEB_INTENTS_SETTINGS_HANDLER2_H_
#pragma once
#include "base/compiler_specific.h"
@@ -13,14 +13,16 @@
class WebIntentsRegistry;
+namespace options2 {
+
// Manage setting up the backing data for the web intents options page.
-class WebIntentsSettingsHandler : public OptionsPage2UIHandler,
+class WebIntentsSettingsHandler : public OptionsPageUIHandler,
public WebIntentsModel::Observer {
public:
WebIntentsSettingsHandler();
virtual ~WebIntentsSettingsHandler();
- // OptionsPage2UIHandler implementation.
+ // OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -74,4 +76,6 @@ class WebIntentsSettingsHandler : public OptionsPage2UIHandler,
DISALLOW_COPY_AND_ASSIGN(WebIntentsSettingsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_WEB_INTENTS_SETTINGS_HANDLER_H_
+} // namespace options2
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_WEB_INTENTS_SETTINGS_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc
index 3892f08..107c8d5 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc
@@ -66,6 +66,8 @@ static void RecordExperimentOutcomesOnSignIn() {
} // namespace
+namespace options2 {
+
SyncPromoHandler2::SyncPromoHandler2(ProfileManager* profile_manager)
: SyncSetupHandler2(profile_manager),
window_already_closed_(false) {
@@ -290,3 +292,5 @@ void SyncPromoHandler2::RecordUserFlowAction(int action) {
UMA_HISTOGRAM_ENUMERATION("SyncPromo.UserFlow", action,
SYNC_PROMO_BUCKET_BOUNDARY);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.h b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.h
index 0726ae4..3c6561d 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.h
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.h
@@ -10,6 +10,8 @@
class PrefService;
+namespace options2 {
+
// The handler for JavaScript messages related to the "sync promo" page.
class SyncPromoHandler2 : public SyncSetupHandler2 {
public:
@@ -94,4 +96,6 @@ class SyncPromoHandler2 : public SyncSetupHandler2 {
DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler2);
};
+} // namespace options2
+
#endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER2_H_
diff --git a/chrome/browser/ui/webui/sync_setup_handler2.cc b/chrome/browser/ui/webui/sync_setup_handler2.cc
index ae50432..71f7fa0 100644
--- a/chrome/browser/ui/webui/sync_setup_handler2.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler2.cc
@@ -233,6 +233,8 @@ bool AreUserNamesEqual(const string16& user1, const string16& user2) {
} // namespace
+namespace options2 {
+
SyncSetupHandler2::SyncSetupHandler2(ProfileManager* profile_manager)
: flow_(NULL),
profile_manager_(profile_manager) {
@@ -770,3 +772,5 @@ void SyncSetupHandler2::ShowLoginErrorMessage(const string16& error_message) {
args.SetString("error_message", error_message);
ShowGaiaLogin(args);
}
+
+} // namespace options2
diff --git a/chrome/browser/ui/webui/sync_setup_handler2.h b/chrome/browser/ui/webui/sync_setup_handler2.h
index a5bc2e5..9413eae 100644
--- a/chrome/browser/ui/webui/sync_setup_handler2.h
+++ b/chrome/browser/ui/webui/sync_setup_handler2.h
@@ -14,8 +14,10 @@
class SyncSetupFlow;
class ProfileManager;
+namespace options2 {
+
class SyncSetupHandler2 : public GaiaOAuthConsumer,
- public OptionsPage2UIHandler,
+ public OptionsPageUIHandler,
public SyncSetupFlowHandler {
public:
// Constructs a new SyncSetupHandler. |profile_manager| may be NULL.
@@ -114,4 +116,6 @@ class SyncSetupHandler2 : public GaiaOAuthConsumer,
DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler2);
};
+} // namespace options2
+
#endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER2_H_
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 2e3851e..33696c5 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -3934,94 +3934,94 @@
'browser/ui/webui/options/stop_syncing_handler.h',
'browser/ui/webui/options/web_intents_settings_handler.cc',
'browser/ui/webui/options/web_intents_settings_handler.h',
- 'browser/ui/webui/options2/advanced_options_handler.cc',
- 'browser/ui/webui/options2/advanced_options_handler.h',
- 'browser/ui/webui/options2/advanced_options_utils.h',
- 'browser/ui/webui/options2/advanced_options_utils_mac.mm',
- 'browser/ui/webui/options2/advanced_options_utils_win.cc',
- 'browser/ui/webui/options2/advanced_options_utils_x11.cc',
- 'browser/ui/webui/options2/autofill_options_handler.cc',
- 'browser/ui/webui/options2/autofill_options_handler.h',
- 'browser/ui/webui/options2/browser_options_handler.cc',
- 'browser/ui/webui/options2/browser_options_handler.h',
- 'browser/ui/webui/options2/certificate_manager_handler.cc',
- 'browser/ui/webui/options2/certificate_manager_handler.h',
- 'browser/ui/webui/options2/chromeos/about_page_handler.cc',
- 'browser/ui/webui/options2/chromeos/about_page_handler.h',
- 'browser/ui/webui/options2/chromeos/accounts_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/accounts_options_handler.h',
- 'browser/ui/webui/options2/chromeos/bluetooth_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/bluetooth_options_handler.h',
- 'browser/ui/webui/options2/chromeos/change_picture_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/change_picture_options_handler.h',
- 'browser/ui/webui/options2/chromeos/core_chromeos_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/core_chromeos_options_handler.h',
- 'browser/ui/webui/options2/chromeos/cros_language_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/cros_language_options_handler.h',
- 'browser/ui/webui/options2/chromeos/internet_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/internet_options_handler.h',
- 'browser/ui/webui/options2/chromeos/language_chewing_handler.cc',
- 'browser/ui/webui/options2/chromeos/language_chewing_handler.h',
- 'browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.cc',
- 'browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler.h',
- 'browser/ui/webui/options2/chromeos/language_hangul_handler.cc',
- 'browser/ui/webui/options2/chromeos/language_hangul_handler.h',
- 'browser/ui/webui/options2/chromeos/language_mozc_handler.cc',
- 'browser/ui/webui/options2/chromeos/language_mozc_handler.h',
- 'browser/ui/webui/options2/chromeos/language_options_util.cc',
- 'browser/ui/webui/options2/chromeos/language_options_util.h',
- 'browser/ui/webui/options2/chromeos/language_pinyin_handler.cc',
- 'browser/ui/webui/options2/chromeos/language_pinyin_handler.h',
- 'browser/ui/webui/options2/chromeos/proxy_handler.cc',
- 'browser/ui/webui/options2/chromeos/proxy_handler.h',
- 'browser/ui/webui/options2/chromeos/stats_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/stats_options_handler.h',
- 'browser/ui/webui/options2/chromeos/system_options_handler.cc',
- 'browser/ui/webui/options2/chromeos/system_options_handler.h',
- 'browser/ui/webui/options2/chromeos/system_settings_provider.cc',
- 'browser/ui/webui/options2/chromeos/system_settings_provider.h',
- 'browser/ui/webui/options2/chromeos/user_image_source.cc',
- 'browser/ui/webui/options2/chromeos/user_image_source.h',
- 'browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.cc',
- 'browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler.h',
- 'browser/ui/webui/options2/clear_browser_data_handler.cc',
- 'browser/ui/webui/options2/clear_browser_data_handler.h',
- 'browser/ui/webui/options2/content_settings_handler.cc',
- 'browser/ui/webui/options2/content_settings_handler.h',
- 'browser/ui/webui/options2/cookies_view_handler.cc',
- 'browser/ui/webui/options2/cookies_view_handler.h',
- 'browser/ui/webui/options2/core_options_handler.cc',
- 'browser/ui/webui/options2/core_options_handler.h',
- 'browser/ui/webui/options2/font_settings_handler.cc',
- 'browser/ui/webui/options2/font_settings_handler.h',
- 'browser/ui/webui/options2/font_settings_utils.h',
- 'browser/ui/webui/options2/font_settings_utils_mac.mm',
- 'browser/ui/webui/options2/font_settings_utils_win.cc',
- 'browser/ui/webui/options2/font_settings_utils_x11.cc',
- 'browser/ui/webui/options2/handler_options_handler.cc',
- 'browser/ui/webui/options2/handler_options_handler.h',
- 'browser/ui/webui/options2/import_data_handler.cc',
- 'browser/ui/webui/options2/import_data_handler.h',
- 'browser/ui/webui/options2/language_options_handler.cc',
- 'browser/ui/webui/options2/language_options_handler.h',
- 'browser/ui/webui/options2/language_options_handler_common.cc',
- 'browser/ui/webui/options2/language_options_handler_common.h',
- 'browser/ui/webui/options2/manage_profile_handler.cc',
- 'browser/ui/webui/options2/manage_profile_handler.h',
- 'browser/ui/webui/options2/options_sync_setup_handler.cc',
- 'browser/ui/webui/options2/options_sync_setup_handler.h',
+ 'browser/ui/webui/options2/advanced_options_handler2.cc',
+ 'browser/ui/webui/options2/advanced_options_handler2.h',
+ 'browser/ui/webui/options2/advanced_options_utils2.h',
+ 'browser/ui/webui/options2/advanced_options_utils2_mac.mm',
+ 'browser/ui/webui/options2/advanced_options_utils2_win.cc',
+ 'browser/ui/webui/options2/advanced_options_utils2_x11.cc',
+ 'browser/ui/webui/options2/autofill_options_handler2.cc',
+ 'browser/ui/webui/options2/autofill_options_handler2.h',
+ 'browser/ui/webui/options2/browser_options_handler2.cc',
+ 'browser/ui/webui/options2/browser_options_handler2.h',
+ 'browser/ui/webui/options2/certificate_manager_handler2.cc',
+ 'browser/ui/webui/options2/certificate_manager_handler2.h',
+ 'browser/ui/webui/options2/chromeos/about_page_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/about_page_handler2.h',
+ 'browser/ui/webui/options2/chromeos/accounts_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/accounts_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/bluetooth_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/change_picture_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/cros_language_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/internet_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/internet_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/language_chewing_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/language_chewing_handler2.h',
+ 'browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/language_customize_modifier_keys_handler2.h',
+ 'browser/ui/webui/options2/chromeos/language_hangul_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/language_hangul_handler2.h',
+ 'browser/ui/webui/options2/chromeos/language_mozc_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/language_mozc_handler2.h',
+ 'browser/ui/webui/options2/chromeos/language_options_util2.cc',
+ 'browser/ui/webui/options2/chromeos/language_options_util2.h',
+ 'browser/ui/webui/options2/chromeos/language_pinyin_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/language_pinyin_handler2.h',
+ 'browser/ui/webui/options2/chromeos/proxy_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/proxy_handler2.h',
+ 'browser/ui/webui/options2/chromeos/stats_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/stats_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/system_options_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/system_options_handler2.h',
+ 'browser/ui/webui/options2/chromeos/system_settings_provider2.cc',
+ 'browser/ui/webui/options2/chromeos/system_settings_provider2.h',
+ 'browser/ui/webui/options2/chromeos/user_image_source2.cc',
+ 'browser/ui/webui/options2/chromeos/user_image_source2.h',
+ 'browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.cc',
+ 'browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h',
+ 'browser/ui/webui/options2/clear_browser_data_handler2.cc',
+ 'browser/ui/webui/options2/clear_browser_data_handler2.h',
+ 'browser/ui/webui/options2/content_settings_handler2.cc',
+ 'browser/ui/webui/options2/content_settings_handler2.h',
+ 'browser/ui/webui/options2/cookies_view_handler2.cc',
+ 'browser/ui/webui/options2/cookies_view_handler2.h',
+ 'browser/ui/webui/options2/core_options_handler2.cc',
+ 'browser/ui/webui/options2/core_options_handler2.h',
+ 'browser/ui/webui/options2/font_settings_handler2.cc',
+ 'browser/ui/webui/options2/font_settings_handler2.h',
+ 'browser/ui/webui/options2/font_settings_utils2.h',
+ 'browser/ui/webui/options2/font_settings_utils2_mac.mm',
+ 'browser/ui/webui/options2/font_settings_utils2_win.cc',
+ 'browser/ui/webui/options2/font_settings_utils2_x11.cc',
+ 'browser/ui/webui/options2/handler_options_handler2.cc',
+ 'browser/ui/webui/options2/handler_options_handler2.h',
+ 'browser/ui/webui/options2/import_data_handler2.cc',
+ 'browser/ui/webui/options2/import_data_handler2.h',
+ 'browser/ui/webui/options2/language_options_handler2.cc',
+ 'browser/ui/webui/options2/language_options_handler2.h',
+ 'browser/ui/webui/options2/language_options_handler_common2.cc',
+ 'browser/ui/webui/options2/language_options_handler_common2.h',
+ 'browser/ui/webui/options2/manage_profile_handler2.cc',
+ 'browser/ui/webui/options2/manage_profile_handler2.h',
+ 'browser/ui/webui/options2/options_sync_setup_handler2.cc',
+ 'browser/ui/webui/options2/options_sync_setup_handler2.h',
'browser/ui/webui/options2/options_ui2.cc',
'browser/ui/webui/options2/options_ui2.h',
- 'browser/ui/webui/options2/password_manager_handler.cc',
- 'browser/ui/webui/options2/password_manager_handler.h',
- 'browser/ui/webui/options2/personal_options_handler.cc',
- 'browser/ui/webui/options2/personal_options_handler.h',
- 'browser/ui/webui/options2/search_engine_manager_handler.cc',
- 'browser/ui/webui/options2/search_engine_manager_handler.h',
- 'browser/ui/webui/options2/stop_syncing_handler.cc',
- 'browser/ui/webui/options2/stop_syncing_handler.h',
- 'browser/ui/webui/options2/web_intents_settings_handler.cc',
- 'browser/ui/webui/options2/web_intents_settings_handler.h',
+ 'browser/ui/webui/options2/password_manager_handler2.cc',
+ 'browser/ui/webui/options2/password_manager_handler2.h',
+ 'browser/ui/webui/options2/personal_options_handler2.cc',
+ 'browser/ui/webui/options2/personal_options_handler2.h',
+ 'browser/ui/webui/options2/search_engine_manager_handler2.cc',
+ 'browser/ui/webui/options2/search_engine_manager_handler2.h',
+ 'browser/ui/webui/options2/stop_syncing_handler2.cc',
+ 'browser/ui/webui/options2/stop_syncing_handler2.h',
+ 'browser/ui/webui/options2/web_intents_settings_handler2.cc',
+ 'browser/ui/webui/options2/web_intents_settings_handler2.h',
'browser/ui/webui/plugins_ui.cc',
'browser/ui/webui/plugins_ui.h',
'browser/ui/webui/policy_ui.cc',
@@ -4474,8 +4474,8 @@
'browser/certificate_manager_model.h',
'browser/ui/webui/options/certificate_manager_handler.cc',
'browser/ui/webui/options/certificate_manager_handler.h',
- 'browser/ui/webui/options2/certificate_manager_handler.cc',
- 'browser/ui/webui/options2/certificate_manager_handler.h',
+ 'browser/ui/webui/options2/certificate_manager_handler2.cc',
+ 'browser/ui/webui/options2/certificate_manager_handler2.h',
'browser/ui/webui/ssl_client_certificate_selector_webui.cc',
'browser/ui/webui/ssl_client_certificate_selector_webui.h',
],