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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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"
11 #include "base/callback.h" 10 #include "base/callback.h"
12 #include "base/command_line.h" 11 #include "base/command_line.h"
13 #include "base/message_loop.h" 12 #include "base/message_loop.h"
14 #include "base/singleton.h" 13 #include "base/singleton.h"
15 #include "base/string_piece.h" 14 #include "base/string_piece.h"
16 #include "base/string_util.h" 15 #include "base/string_util.h"
17 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
18 #include "base/time.h" 17 #include "base/time.h"
19 #include "base/values.h" 18 #include "base/values.h"
20 #include "chrome/browser/browser_about_handler.h" 19 #include "chrome/browser/browser_about_handler.h"
(...skipping 24 matching lines...) Expand all
45 #include "chrome/common/jstemplate_builder.h" 44 #include "chrome/common/jstemplate_builder.h"
46 #include "chrome/common/notification_type.h" 45 #include "chrome/common/notification_type.h"
47 #include "chrome/common/time_format.h" 46 #include "chrome/common/time_format.h"
48 #include "chrome/common/url_constants.h" 47 #include "chrome/common/url_constants.h"
49 #include "grit/browser_resources.h" 48 #include "grit/browser_resources.h"
50 #include "grit/chromium_strings.h" 49 #include "grit/chromium_strings.h"
51 #include "grit/generated_resources.h" 50 #include "grit/generated_resources.h"
52 #include "grit/locale_settings.h" 51 #include "grit/locale_settings.h"
53 #include "grit/theme_resources.h" 52 #include "grit/theme_resources.h"
54 #include "net/base/escape.h" 53 #include "net/base/escape.h"
54 #include "ui/base/resource/resource_bundle.h"
55 55
56 #if defined(OS_CHROMEOS) 56 #if defined(OS_CHROMEOS)
57 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h" 57 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h"
58 #include "chrome/browser/chromeos/dom_ui/core_chromeos_options_handler.h" 58 #include "chrome/browser/chromeos/dom_ui/core_chromeos_options_handler.h"
59 #include "chrome/browser/chromeos/dom_ui/cros_personal_options_handler.h" 59 #include "chrome/browser/chromeos/dom_ui/cros_personal_options_handler.h"
60 #include "chrome/browser/chromeos/dom_ui/internet_options_handler.h" 60 #include "chrome/browser/chromeos/dom_ui/internet_options_handler.h"
61 #include "chrome/browser/chromeos/dom_ui/language_chewing_options_handler.h" 61 #include "chrome/browser/chromeos/dom_ui/language_chewing_options_handler.h"
62 #include "chrome/browser/chromeos/dom_ui/language_customize_modifier_keys_handle r.h" 62 #include "chrome/browser/chromeos/dom_ui/language_customize_modifier_keys_handle r.h"
63 #include "chrome/browser/chromeos/dom_ui/language_hangul_options_handler.h" 63 #include "chrome/browser/chromeos/dom_ui/language_hangul_options_handler.h"
64 #include "chrome/browser/chromeos/dom_ui/language_mozc_options_handler.h" 64 #include "chrome/browser/chromeos/dom_ui/language_mozc_options_handler.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 OptionsPageUIHandler* handler_raw) { 269 OptionsPageUIHandler* handler_raw) {
270 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); 270 scoped_ptr<OptionsPageUIHandler> handler(handler_raw);
271 DCHECK(handler.get()); 271 DCHECK(handler.get());
272 // Add only if handler's service is enabled. 272 // Add only if handler's service is enabled.
273 if (handler->IsEnabled()) { 273 if (handler->IsEnabled()) {
274 handler->GetLocalizedValues(localized_strings); 274 handler->GetLocalizedValues(localized_strings);
275 // Add handler to the list and also pass the ownership. 275 // Add handler to the list and also pass the ownership.
276 AddMessageHandler(handler.release()->Attach(this)); 276 AddMessageHandler(handler.release()->Attach(this));
277 } 277 }
278 } 278 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/about_page_handler.cc ('k') | chrome/browser/dom_ui/plugins_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698