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

Side by Side Diff: extensions/shell/browser/shell_browser_main_parts.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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
« no previous file with comments | « content/public/test/test_renderer_host.cc ('k') | mash/test/mash_test_suite.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/shell/browser/shell_browser_main_parts.h" 5 #include "extensions/shell/browser/shell_browser_main_parts.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 shell_prefs::CreateUserPrefService(browser_context_.get()); 148 shell_prefs::CreateUserPrefService(browser_context_.get());
149 149
150 #if defined(OS_CHROMEOS) 150 #if defined(OS_CHROMEOS)
151 chromeos::CrasAudioHandler::Initialize( 151 chromeos::CrasAudioHandler::Initialize(
152 new chromeos::AudioDevicesPrefHandlerImpl(local_state_.get())); 152 new chromeos::AudioDevicesPrefHandlerImpl(local_state_.get()));
153 audio_controller_.reset(new ShellAudioController()); 153 audio_controller_.reset(new ShellAudioController());
154 #endif 154 #endif
155 155
156 #if defined(USE_AURA) 156 #if defined(USE_AURA)
157 aura::Env::GetInstance()->set_context_factory(content::GetContextFactory()); 157 aura::Env::GetInstance()->set_context_factory(content::GetContextFactory());
158 aura::Env::GetInstance()->set_context_factory_private(
159 content::GetContextFactoryPrivate());
158 #endif 160 #endif
159 161
160 storage_monitor::StorageMonitor::Create(); 162 storage_monitor::StorageMonitor::Create();
161 163
162 desktop_controller_.reset(browser_main_delegate_->CreateDesktopController()); 164 desktop_controller_.reset(browser_main_delegate_->CreateDesktopController());
163 165
164 // TODO(jamescook): Initialize user_manager::UserManager. 166 // TODO(jamescook): Initialize user_manager::UserManager.
165 167
166 device_client_.reset(new ShellDeviceClient); 168 device_client_.reset(new ShellDeviceClient);
167 169
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 290 }
289 291
290 void ShellBrowserMainParts::CreateExtensionSystem() { 292 void ShellBrowserMainParts::CreateExtensionSystem() {
291 DCHECK(browser_context_); 293 DCHECK(browser_context_);
292 extension_system_ = static_cast<ShellExtensionSystem*>( 294 extension_system_ = static_cast<ShellExtensionSystem*>(
293 ExtensionSystem::Get(browser_context_.get())); 295 ExtensionSystem::Get(browser_context_.get()));
294 extension_system_->InitForRegularProfile(true); 296 extension_system_->InitForRegularProfile(true);
295 } 297 }
296 298
297 } // namespace extensions 299 } // namespace extensions
OLDNEW
« no previous file with comments | « content/public/test/test_renderer_host.cc ('k') | mash/test/mash_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698