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

Side by Side Diff: chrome/browser/ui/webui/options2/options_ui2.cc

Issue 9703031: Retry landing "Enable users change desktop background image from settings page in Chromeos Aura bui… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to trunk Created 8 years, 9 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/options2/options_ui2.h" 5 #include "chrome/browser/ui/webui/options2/options_ui2.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h" 70 #include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h"
71 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h" 71 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h"
72 #include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h" 72 #include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h"
73 #include "chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h" 73 #include "chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h"
74 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h" 74 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h"
75 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h" 75 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h"
76 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h" 76 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h"
77 #include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_han dler2.h" 77 #include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_han dler2.h"
78 #endif 78 #endif
79 79
80 #if defined(OS_CHROMEOS) && defined(USE_ASH)
81 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r2.h"
82 #endif
83
80 #if defined(USE_NSS) 84 #if defined(USE_NSS)
81 #include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h" 85 #include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h"
82 #endif 86 #endif
83 87
84 using content::RenderViewHost; 88 using content::RenderViewHost;
85 using content::WebContents; 89 using content::WebContents;
86 using content::WebUIMessageHandler; 90 using content::WebUIMessageHandler;
87 91
88 namespace options2 { 92 namespace options2 {
89 93
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 localized_strings, 223 localized_strings,
220 new chromeos::options2::VirtualKeyboardManagerHandler()); 224 new chromeos::options2::VirtualKeyboardManagerHandler());
221 AddOptionsPageUIHandler(localized_strings, 225 AddOptionsPageUIHandler(localized_strings,
222 new chromeos::options2::ProxyHandler()); 226 new chromeos::options2::ProxyHandler());
223 AddOptionsPageUIHandler( 227 AddOptionsPageUIHandler(
224 localized_strings, 228 localized_strings,
225 new chromeos::options2::ChangePictureOptionsHandler()); 229 new chromeos::options2::ChangePictureOptionsHandler());
226 AddOptionsPageUIHandler(localized_strings, 230 AddOptionsPageUIHandler(localized_strings,
227 new chromeos::options2::StatsOptionsHandler()); 231 new chromeos::options2::StatsOptionsHandler());
228 #endif 232 #endif
233 #if defined(OS_CHROMEOS) && defined(USE_ASH)
234 AddOptionsPageUIHandler(
235 localized_strings,
236 new chromeos::options2::SetWallpaperOptionsHandler());
237 #endif
229 #if defined(USE_NSS) 238 #if defined(USE_NSS)
230 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler()); 239 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler());
231 #endif 240 #endif
232 AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler()); 241 AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler());
233 242
234 // |localized_strings| ownership is taken over by this constructor. 243 // |localized_strings| ownership is taken over by this constructor.
235 OptionsUIHTMLSource* html_source = 244 OptionsUIHTMLSource* html_source =
236 new OptionsUIHTMLSource(localized_strings); 245 new OptionsUIHTMLSource(localized_strings);
237 246
238 // Set up the chrome://settings-frame/ source. 247 // Set up the chrome://settings-frame/ source.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString()); 349 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString());
341 #else 350 #else
342 command_line_string = 351 command_line_string =
343 CommandLine::ForCurrentProcess()->GetCommandLineString(); 352 CommandLine::ForCurrentProcess()->GetCommandLineString();
344 #endif 353 #endif
345 354
346 render_view_host->SetWebUIProperty("commandLineString", command_line_string); 355 render_view_host->SetWebUIProperty("commandLineString", command_line_string);
347 } 356 }
348 357
349 } // namespace options2 358 } // namespace options2
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698