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

Side by Side Diff: ui/views/examples/content_client/examples_main_delegate.cc

Issue 10270023: Add new ResourceBundle::Delegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « ui/test/test_suite.cc ('k') | ui/views/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/views/examples/content_client/examples_main_delegate.h" 5 #include "ui/views/examples/content_client/examples_main_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } else if (process_type == switches::kPluginProcess) { 116 } else if (process_type == switches::kPluginProcess) {
117 plugin_client_.reset(new content::ShellContentPluginClient); 117 plugin_client_.reset(new content::ShellContentPluginClient);
118 content::GetContentClient()->set_plugin(plugin_client_.get()); 118 content::GetContentClient()->set_plugin(plugin_client_.get());
119 } else if (process_type == switches::kUtilityProcess) { 119 } else if (process_type == switches::kUtilityProcess) {
120 utility_client_.reset(new content::ShellContentUtilityClient); 120 utility_client_.reset(new content::ShellContentUtilityClient);
121 content::GetContentClient()->set_utility(utility_client_.get()); 121 content::GetContentClient()->set_utility(utility_client_.get());
122 } 122 }
123 } 123 }
124 124
125 void ExamplesMainDelegate::InitializeResourceBundle() { 125 void ExamplesMainDelegate::InitializeResourceBundle() {
126 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US"); 126 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
127 } 127 }
128 128
129 } // namespace examples 129 } // namespace examples
130 } // namespace views 130 } // namespace views
OLDNEW
« no previous file with comments | « ui/test/test_suite.cc ('k') | ui/views/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698