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

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

Issue 684143003: Make chrome/browser/ui/webui not depend on ash when using Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash43_kiosk_mode
Patch Set: Created 6 years, 1 month 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
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 81 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
82 #include "chrome/browser/chromeos/policy/consumer_management_service.h" 82 #include "chrome/browser/chromeos/policy/consumer_management_service.h"
83 #include "chrome/browser/chromeos/system/pointer_device_observer.h" 83 #include "chrome/browser/chromeos/system/pointer_device_observer.h"
84 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" 84 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h"
85 #include "chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h" 85 #include "chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h"
86 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle r.h" 86 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle r.h"
87 #include "chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h " 87 #include "chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h "
88 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler .h" 88 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler .h"
89 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler .h" 89 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler .h"
90 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" 90 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h"
91 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h"
92 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h"
93 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h"
94 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" 91 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h"
95 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" 92 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h"
96 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h"
97 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" 93 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h"
98 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" 94 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h"
99 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" 95 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h"
100 #endif 96 #endif
101 97
102 #if defined(USE_NSS) 98 #if defined(USE_NSS)
103 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" 99 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h"
104 #endif 100 #endif
105 101
106 #if defined(ENABLE_GOOGLE_NOW) 102 #if defined(ENABLE_GOOGLE_NOW)
107 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h" 103 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h"
108 #endif 104 #endif
109 105
106 #if !defined(USE_ATHENA)
107 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h"
108 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h"
109 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h"
110 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h"
111 #endif
112
110 using content::RenderViewHost; 113 using content::RenderViewHost;
111 114
112 namespace { 115 namespace {
113 116
114 const char kLocalizedStringsFile[] = "strings.js"; 117 const char kLocalizedStringsFile[] = "strings.js";
115 const char kOptionsBundleJsFile[] = "options_bundle.js"; 118 const char kOptionsBundleJsFile[] = "options_bundle.js";
116 119
117 } // namespace 120 } // namespace
118 121
119 namespace options { 122 namespace options {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler( 315 AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler(
313 g_browser_process->profile_manager())); 316 g_browser_process->profile_manager()));
314 AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler()); 317 AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler());
315 #if defined(OS_CHROMEOS) 318 #if defined(OS_CHROMEOS)
316 AddOptionsPageUIHandler(localized_strings, 319 AddOptionsPageUIHandler(localized_strings,
317 new chromeos::options::AccountsOptionsHandler()); 320 new chromeos::options::AccountsOptionsHandler());
318 AddOptionsPageUIHandler(localized_strings, 321 AddOptionsPageUIHandler(localized_strings,
319 new chromeos::options::BluetoothOptionsHandler()); 322 new chromeos::options::BluetoothOptionsHandler());
320 AddOptionsPageUIHandler(localized_strings, 323 AddOptionsPageUIHandler(localized_strings,
321 new chromeos::options::DateTimeOptionsHandler()); 324 new chromeos::options::DateTimeOptionsHandler());
325 #if !defined(USE_ATHENA)
322 AddOptionsPageUIHandler(localized_strings, 326 AddOptionsPageUIHandler(localized_strings,
323 new chromeos::options::DisplayOptionsHandler()); 327 new chromeos::options::DisplayOptionsHandler());
324 AddOptionsPageUIHandler(localized_strings, 328 AddOptionsPageUIHandler(localized_strings,
325 new chromeos::options::DisplayOverscanHandler()); 329 new chromeos::options::DisplayOverscanHandler());
326 AddOptionsPageUIHandler(localized_strings, 330 AddOptionsPageUIHandler(localized_strings,
327 new chromeos::options::InternetOptionsHandler()); 331 new chromeos::options::InternetOptionsHandler());
328 AddOptionsPageUIHandler(localized_strings, 332 AddOptionsPageUIHandler(localized_strings,
333 new chromeos::options::PowerHandler());
334 #endif
335 AddOptionsPageUIHandler(localized_strings,
329 new chromeos::options::KeyboardHandler()); 336 new chromeos::options::KeyboardHandler());
330 AddOptionsPageUIHandler(localized_strings,
331 new chromeos::options::PowerHandler());
332 337
333 chromeos::options::PointerHandler* pointer_handler = 338 chromeos::options::PointerHandler* pointer_handler =
334 new chromeos::options::PointerHandler(); 339 new chromeos::options::PointerHandler();
335 AddOptionsPageUIHandler(localized_strings, pointer_handler); 340 AddOptionsPageUIHandler(localized_strings, pointer_handler);
336 341
337 AddOptionsPageUIHandler(localized_strings, 342 AddOptionsPageUIHandler(localized_strings,
338 new chromeos::options::ProxyHandler()); 343 new chromeos::options::ProxyHandler());
339 AddOptionsPageUIHandler( 344 AddOptionsPageUIHandler(
340 localized_strings, 345 localized_strings,
341 new chromeos::options::ChangePictureOptionsHandler()); 346 new chromeos::options::ChangePictureOptionsHandler());
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // Add only if handler's service is enabled. 482 // Add only if handler's service is enabled.
478 if (handler->IsEnabled()) { 483 if (handler->IsEnabled()) {
479 // Add handler to the list and also pass the ownership. 484 // Add handler to the list and also pass the ownership.
480 web_ui()->AddMessageHandler(handler.release()); 485 web_ui()->AddMessageHandler(handler.release());
481 handler_raw->GetLocalizedValues(localized_strings); 486 handler_raw->GetLocalizedValues(localized_strings);
482 handlers_.push_back(handler_raw); 487 handlers_.push_back(handler_raw);
483 } 488 }
484 } 489 }
485 490
486 } // namespace options 491 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698