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

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

Issue 11414294: Add a "managed user settings" page to chrome://settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years 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 18 matching lines...) Expand all
29 #include "chrome/browser/ui/webui/options/content_settings_handler.h" 29 #include "chrome/browser/ui/webui/options/content_settings_handler.h"
30 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" 30 #include "chrome/browser/ui/webui/options/cookies_view_handler.h"
31 #include "chrome/browser/ui/webui/options/core_options_handler.h" 31 #include "chrome/browser/ui/webui/options/core_options_handler.h"
32 #include "chrome/browser/ui/webui/options/font_settings_handler.h" 32 #include "chrome/browser/ui/webui/options/font_settings_handler.h"
33 #include "chrome/browser/ui/webui/options/handler_options_handler.h" 33 #include "chrome/browser/ui/webui/options/handler_options_handler.h"
34 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" 34 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h"
35 #include "chrome/browser/ui/webui/options/import_data_handler.h" 35 #include "chrome/browser/ui/webui/options/import_data_handler.h"
36 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" 36 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h"
37 #include "chrome/browser/ui/webui/options/language_options_handler.h" 37 #include "chrome/browser/ui/webui/options/language_options_handler.h"
38 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" 38 #include "chrome/browser/ui/webui/options/manage_profile_handler.h"
39 #include "chrome/browser/ui/webui/options/managed_user_settings_handler.h"
39 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" 40 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h"
40 #include "chrome/browser/ui/webui/options/media_galleries_handler.h" 41 #include "chrome/browser/ui/webui/options/media_galleries_handler.h"
41 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" 42 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h"
42 #include "chrome/browser/ui/webui/options/password_manager_handler.h" 43 #include "chrome/browser/ui/webui/options/password_manager_handler.h"
43 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" 44 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h"
44 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" 45 #include "chrome/browser/ui/webui/options/startup_pages_handler.h"
45 #include "chrome/browser/ui/webui/theme_source.h" 46 #include "chrome/browser/ui/webui/theme_source.h"
46 #include "chrome/common/jstemplate_builder.h" 47 #include "chrome/common/jstemplate_builder.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"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 AddOptionsPageUIHandler(localized_strings, new MediaGalleriesHandler()); 247 AddOptionsPageUIHandler(localized_strings, new MediaGalleriesHandler());
247 #if defined(OS_CHROMEOS) 248 #if defined(OS_CHROMEOS)
248 AddOptionsPageUIHandler(localized_strings, 249 AddOptionsPageUIHandler(localized_strings,
249 new chromeos::options::CrosLanguageOptionsHandler()); 250 new chromeos::options::CrosLanguageOptionsHandler());
250 #else 251 #else
251 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); 252 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler());
252 #endif 253 #endif
253 AddOptionsPageUIHandler(localized_strings, 254 AddOptionsPageUIHandler(localized_strings,
254 new LanguageDictionaryOverlayHandler()); 255 new LanguageDictionaryOverlayHandler());
255 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); 256 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler());
257 AddOptionsPageUIHandler(localized_strings, new ManagedUserSettingsHandler());
256 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); 258 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler());
257 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 259 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
258 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); 260 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler());
259 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); 261 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler());
260 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler( 262 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler(
261 g_browser_process->profile_manager())); 263 g_browser_process->profile_manager()));
262 #if defined(OS_CHROMEOS) 264 #if defined(OS_CHROMEOS)
263 AddOptionsPageUIHandler(localized_strings, 265 AddOptionsPageUIHandler(localized_strings,
264 new chromeos::options::AccountsOptionsHandler()); 266 new chromeos::options::AccountsOptionsHandler());
265 AddOptionsPageUIHandler(localized_strings, 267 AddOptionsPageUIHandler(localized_strings,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // Add only if handler's service is enabled. 404 // Add only if handler's service is enabled.
403 if (handler->IsEnabled()) { 405 if (handler->IsEnabled()) {
404 // Add handler to the list and also pass the ownership. 406 // Add handler to the list and also pass the ownership.
405 web_ui()->AddMessageHandler(handler.release()); 407 web_ui()->AddMessageHandler(handler.release());
406 handler_raw->GetLocalizedValues(localized_strings); 408 handler_raw->GetLocalizedValues(localized_strings);
407 handlers_.push_back(handler_raw); 409 handlers_.push_back(handler_raw);
408 } 410 }
409 } 411 }
410 412
411 } // namespace options 413 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/managed_user_settings_handler.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698