Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: chrome/browser/ui/webui/options/options_ui.cc

Issue 14924002: WebUI for Profile Settings Reset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/options_ui.h" 5 #include "chrome/browser/ui/webui/options/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 23 matching lines...) Expand all
34 #include "chrome/browser/ui/webui/options/import_data_handler.h" 34 #include "chrome/browser/ui/webui/options/import_data_handler.h"
35 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" 35 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h"
36 #include "chrome/browser/ui/webui/options/language_options_handler.h" 36 #include "chrome/browser/ui/webui/options/language_options_handler.h"
37 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" 37 #include "chrome/browser/ui/webui/options/manage_profile_handler.h"
38 #include "chrome/browser/ui/webui/options/managed_user_passphrase_handler.h" 38 #include "chrome/browser/ui/webui/options/managed_user_passphrase_handler.h"
39 #include "chrome/browser/ui/webui/options/managed_user_settings_handler.h" 39 #include "chrome/browser/ui/webui/options/managed_user_settings_handler.h"
40 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" 40 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h"
41 #include "chrome/browser/ui/webui/options/media_galleries_handler.h" 41 #include "chrome/browser/ui/webui/options/media_galleries_handler.h"
42 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" 42 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h"
43 #include "chrome/browser/ui/webui/options/password_manager_handler.h" 43 #include "chrome/browser/ui/webui/options/password_manager_handler.h"
44 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h"
44 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" 45 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h"
45 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" 46 #include "chrome/browser/ui/webui/options/startup_pages_handler.h"
46 #include "chrome/browser/ui/webui/theme_source.h" 47 #include "chrome/browser/ui/webui/theme_source.h"
47 #include "chrome/common/time_format.h" 48 #include "chrome/common/time_format.h"
48 #include "chrome/common/url_constants.h" 49 #include "chrome/common/url_constants.h"
49 #include "content/public/browser/notification_types.h" 50 #include "content/public/browser/notification_types.h"
50 #include "content/public/browser/render_view_host.h" 51 #include "content/public/browser/render_view_host.h"
51 #include "content/public/browser/url_data_source.h" 52 #include "content/public/browser/url_data_source.h"
52 #include "content/public/browser/web_contents.h" 53 #include "content/public/browser/web_contents.h"
53 #include "content/public/browser/web_contents_delegate.h" 54 #include "content/public/browser/web_contents_delegate.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 #else 267 #else
267 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); 268 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler());
268 #endif 269 #endif
269 AddOptionsPageUIHandler(localized_strings, 270 AddOptionsPageUIHandler(localized_strings,
270 new LanguageDictionaryOverlayHandler()); 271 new LanguageDictionaryOverlayHandler());
271 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); 272 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler());
272 AddOptionsPageUIHandler(localized_strings, 273 AddOptionsPageUIHandler(localized_strings,
273 new ManagedUserPassphraseHandler()); 274 new ManagedUserPassphraseHandler());
274 AddOptionsPageUIHandler(localized_strings, new ManagedUserSettingsHandler()); 275 AddOptionsPageUIHandler(localized_strings, new ManagedUserSettingsHandler());
275 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); 276 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler());
277 AddOptionsPageUIHandler(localized_strings, new ResetProfileSettingsHandler());
276 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 278 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
277 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); 279 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler());
278 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); 280 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler());
279 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler( 281 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler(
280 g_browser_process->profile_manager())); 282 g_browser_process->profile_manager()));
281 #if defined(OS_CHROMEOS) 283 #if defined(OS_CHROMEOS)
282 AddOptionsPageUIHandler(localized_strings, 284 AddOptionsPageUIHandler(localized_strings,
283 new chromeos::options::AccountsOptionsHandler()); 285 new chromeos::options::AccountsOptionsHandler());
284 AddOptionsPageUIHandler(localized_strings, 286 AddOptionsPageUIHandler(localized_strings,
285 new chromeos::options::BluetoothOptionsHandler()); 287 new chromeos::options::BluetoothOptionsHandler());
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Add only if handler's service is enabled. 427 // Add only if handler's service is enabled.
426 if (handler->IsEnabled()) { 428 if (handler->IsEnabled()) {
427 // Add handler to the list and also pass the ownership. 429 // Add handler to the list and also pass the ownership.
428 web_ui()->AddMessageHandler(handler.release()); 430 web_ui()->AddMessageHandler(handler.release());
429 handler_raw->GetLocalizedValues(localized_strings); 431 handler_raw->GetLocalizedValues(localized_strings);
430 handlers_.push_back(handler_raw); 432 handlers_.push_back(handler_raw);
431 } 433 }
432 } 434 }
433 435
434 } // namespace options 436 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698