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

Side by Side Diff: chrome/browser/dom_ui/options/options_ui.cc

Issue 6296017: dom-ui settings: enable languages & spell checker settings for all platforms.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review tweak Created 9 years, 11 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/dom_ui/options/options_ui.h" 5 #include "chrome/browser/dom_ui/options/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 #endif 146 #endif
147 147
148 AddOptionsPageUIHandler(localized_strings, new AddStartupPageHandler()); 148 AddOptionsPageUIHandler(localized_strings, new AddStartupPageHandler());
149 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler()); 149 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler());
150 AddOptionsPageUIHandler(localized_strings, new AutoFillOptionsHandler()); 150 AddOptionsPageUIHandler(localized_strings, new AutoFillOptionsHandler());
151 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler()); 151 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler());
152 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler()); 152 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler());
153 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler()); 153 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler());
154 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler()); 154 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler());
155 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); 155 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler());
156 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler());
156 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); 157 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler());
157 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler()); 158 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler());
158 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 159 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
159 AddOptionsPageUIHandler(localized_strings, new StartupPageManagerHandler()); 160 AddOptionsPageUIHandler(localized_strings, new StartupPageManagerHandler());
160 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); 161 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler());
161 AddOptionsPageUIHandler(localized_strings, new StopSyncingHandler()); 162 AddOptionsPageUIHandler(localized_strings, new StopSyncingHandler());
162 #if defined(OS_CHROMEOS) 163 #if defined(OS_CHROMEOS)
163 AddOptionsPageUIHandler(localized_strings, new AboutPageHandler()); 164 AddOptionsPageUIHandler(localized_strings, new AboutPageHandler());
164 AddOptionsPageUIHandler(localized_strings, 165 AddOptionsPageUIHandler(localized_strings,
165 new chromeos::AccountsOptionsHandler()); 166 new chromeos::AccountsOptionsHandler());
166 AddOptionsPageUIHandler(localized_strings, new InternetOptionsHandler()); 167 AddOptionsPageUIHandler(localized_strings, new InternetOptionsHandler());
167 AddOptionsPageUIHandler(localized_strings, 168 AddOptionsPageUIHandler(localized_strings,
168 new chromeos::LanguageChewingOptionsHandler()); 169 new chromeos::LanguageChewingOptionsHandler());
169 AddOptionsPageUIHandler(localized_strings, 170 AddOptionsPageUIHandler(localized_strings,
170 new chromeos::LanguageCustomizeModifierKeysHandler()); 171 new chromeos::LanguageCustomizeModifierKeysHandler());
171 AddOptionsPageUIHandler(localized_strings, 172 AddOptionsPageUIHandler(localized_strings,
172 new chromeos::LanguageHangulOptionsHandler()); 173 new chromeos::LanguageHangulOptionsHandler());
173 AddOptionsPageUIHandler(localized_strings, 174 AddOptionsPageUIHandler(localized_strings,
174 new chromeos::LanguageMozcOptionsHandler()); 175 new chromeos::LanguageMozcOptionsHandler());
175 AddOptionsPageUIHandler(localized_strings, 176 AddOptionsPageUIHandler(localized_strings,
176 new chromeos::LanguageOptionsHandler());
177 AddOptionsPageUIHandler(localized_strings,
178 new chromeos::LanguagePinyinOptionsHandler()); 177 new chromeos::LanguagePinyinOptionsHandler());
179 AddOptionsPageUIHandler(localized_strings, new chromeos::ProxyHandler()); 178 AddOptionsPageUIHandler(localized_strings, new chromeos::ProxyHandler());
180 AddOptionsPageUIHandler(localized_strings, 179 AddOptionsPageUIHandler(localized_strings,
181 new chromeos::StatsOptionsHandler()); 180 new chromeos::StatsOptionsHandler());
182 AddOptionsPageUIHandler(localized_strings, new SystemOptionsHandler()); 181 AddOptionsPageUIHandler(localized_strings, new SystemOptionsHandler());
183 AddOptionsPageUIHandler(localized_strings, 182 AddOptionsPageUIHandler(localized_strings,
184 new chromeos::CrosPersonalOptionsHandler()); 183 new chromeos::CrosPersonalOptionsHandler());
185 #endif 184 #endif
186 #if defined(USE_NSS) 185 #if defined(USE_NSS)
187 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler()); 186 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler());
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 OptionsPageUIHandler* handler_raw) { 268 OptionsPageUIHandler* handler_raw) {
270 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); 269 scoped_ptr<OptionsPageUIHandler> handler(handler_raw);
271 DCHECK(handler.get()); 270 DCHECK(handler.get());
272 // Add only if handler's service is enabled. 271 // Add only if handler's service is enabled.
273 if (handler->IsEnabled()) { 272 if (handler->IsEnabled()) {
274 handler->GetLocalizedValues(localized_strings); 273 handler->GetLocalizedValues(localized_strings);
275 // Add handler to the list and also pass the ownership. 274 // Add handler to the list and also pass the ownership.
276 AddMessageHandler(handler.release()->Attach(this)); 275 AddMessageHandler(handler.release()->Attach(this));
277 } 276 }
278 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698