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

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

Issue 7719029: Revert 97966 : Revert 97955 - First pass on intents options UI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to head Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 10 matching lines...) Expand all
21 #include "chrome/browser/ui/webui/options/advanced_options_handler.h" 21 #include "chrome/browser/ui/webui/options/advanced_options_handler.h"
22 #include "chrome/browser/ui/webui/options/autofill_options_handler.h" 22 #include "chrome/browser/ui/webui/options/autofill_options_handler.h"
23 #include "chrome/browser/ui/webui/options/browser_options_handler.h" 23 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
24 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h" 24 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h"
25 #include "chrome/browser/ui/webui/options/content_settings_handler.h" 25 #include "chrome/browser/ui/webui/options/content_settings_handler.h"
26 #include "chrome/browser/ui/webui/options/handler_options_handler.h" 26 #include "chrome/browser/ui/webui/options/handler_options_handler.h"
27 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" 27 #include "chrome/browser/ui/webui/options/cookies_view_handler.h"
28 #include "chrome/browser/ui/webui/options/core_options_handler.h" 28 #include "chrome/browser/ui/webui/options/core_options_handler.h"
29 #include "chrome/browser/ui/webui/options/font_settings_handler.h" 29 #include "chrome/browser/ui/webui/options/font_settings_handler.h"
30 #include "chrome/browser/ui/webui/options/import_data_handler.h" 30 #include "chrome/browser/ui/webui/options/import_data_handler.h"
31 #include "chrome/browser/ui/webui/options/intents_settings_handler.h"
31 #include "chrome/browser/ui/webui/options/language_options_handler.h" 32 #include "chrome/browser/ui/webui/options/language_options_handler.h"
32 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" 33 #include "chrome/browser/ui/webui/options/manage_profile_handler.h"
33 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" 34 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h"
34 #include "chrome/browser/ui/webui/options/password_manager_handler.h" 35 #include "chrome/browser/ui/webui/options/password_manager_handler.h"
35 #include "chrome/browser/ui/webui/options/personal_options_handler.h" 36 #include "chrome/browser/ui/webui/options/personal_options_handler.h"
36 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" 37 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h"
37 #include "chrome/browser/ui/webui/options/stop_syncing_handler.h" 38 #include "chrome/browser/ui/webui/options/stop_syncing_handler.h"
38 #include "chrome/browser/ui/webui/theme_source.h" 39 #include "chrome/browser/ui/webui/theme_source.h"
39 #include "chrome/common/jstemplate_builder.h" 40 #include "chrome/common/jstemplate_builder.h"
40 #include "chrome/common/time_format.h" 41 #include "chrome/common/time_format.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 core_handler->set_handlers_host(this); 204 core_handler->set_handlers_host(this);
204 AddOptionsPageUIHandler(localized_strings, core_handler); 205 AddOptionsPageUIHandler(localized_strings, core_handler);
205 206
206 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler()); 207 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler());
207 AddOptionsPageUIHandler(localized_strings, new AutofillOptionsHandler()); 208 AddOptionsPageUIHandler(localized_strings, new AutofillOptionsHandler());
208 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler()); 209 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler());
209 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler()); 210 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler());
210 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler()); 211 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler());
211 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler()); 212 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler());
212 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); 213 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler());
214 AddOptionsPageUIHandler(localized_strings, new IntentsSettingsHandler());
213 #if defined(OS_CHROMEOS) 215 #if defined(OS_CHROMEOS)
214 AddOptionsPageUIHandler(localized_strings, 216 AddOptionsPageUIHandler(localized_strings,
215 new chromeos::CrosLanguageOptionsHandler()); 217 new chromeos::CrosLanguageOptionsHandler());
216 #else 218 #else
217 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); 219 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler());
218 #endif 220 #endif
219 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); 221 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler());
220 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); 222 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler());
221 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler()); 223 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler());
222 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 224 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 OptionsPageUIHandler* handler_raw) { 341 OptionsPageUIHandler* handler_raw) {
340 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); 342 scoped_ptr<OptionsPageUIHandler> handler(handler_raw);
341 DCHECK(handler.get()); 343 DCHECK(handler.get());
342 // Add only if handler's service is enabled. 344 // Add only if handler's service is enabled.
343 if (handler->IsEnabled()) { 345 if (handler->IsEnabled()) {
344 handler->GetLocalizedValues(localized_strings); 346 handler->GetLocalizedValues(localized_strings);
345 // Add handler to the list and also pass the ownership. 347 // Add handler to the list and also pass the ownership.
346 AddMessageHandler(handler.release()->Attach(this)); 348 AddMessageHandler(handler.release()->Attach(this));
347 } 349 }
348 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698