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

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

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity Created 6 years, 4 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 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h" 9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
10 #include "components/omaha_query_params/omaha_query_params.h" 10 #include "components/omaha_query_params/omaha_query_params.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 void ShellBrowserMainParts::PreMainMessageLoopRun() { 87 void ShellBrowserMainParts::PreMainMessageLoopRun() {
88 // Initialize our "profile" equivalent. 88 // Initialize our "profile" equivalent.
89 browser_context_.reset(new ShellBrowserContext); 89 browser_context_.reset(new ShellBrowserContext);
90 90
91 desktop_controller_.reset(browser_main_delegate_->CreateDesktopController()); 91 desktop_controller_.reset(browser_main_delegate_->CreateDesktopController());
92 desktop_controller_->CreateRootWindow(); 92 desktop_controller_->CreateRootWindow();
93 93
94 // NOTE: Much of this is culled from chrome/test/base/chrome_test_suite.cc 94 // NOTE: Much of this is culled from chrome/test/base/chrome_test_suite.cc
95 // TODO(jamescook): Initialize chromeos::UserManager. 95 // TODO(jamescook): Initialize user_manager::UserManager.
96 net_log_.reset(new content::ShellNetLog("app_shell")); 96 net_log_.reset(new content::ShellNetLog("app_shell"));
97 97
98 extensions_client_.reset(new ShellExtensionsClient()); 98 extensions_client_.reset(new ShellExtensionsClient());
99 ExtensionsClient::Set(extensions_client_.get()); 99 ExtensionsClient::Set(extensions_client_.get());
100 100
101 extensions_browser_client_.reset( 101 extensions_browser_client_.reset(
102 new ShellExtensionsBrowserClient(browser_context_.get())); 102 new ShellExtensionsBrowserClient(browser_context_.get()));
103 ExtensionsBrowserClient::Set(extensions_browser_client_.get()); 103 ExtensionsBrowserClient::Set(extensions_browser_client_.get());
104 104
105 omaha_query_params_delegate_.reset(new ShellOmahaQueryParamsDelegate); 105 omaha_query_params_delegate_.reset(new ShellOmahaQueryParamsDelegate);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 void ShellBrowserMainParts::CreateExtensionSystem() { 160 void ShellBrowserMainParts::CreateExtensionSystem() {
161 DCHECK(browser_context_); 161 DCHECK(browser_context_);
162 extension_system_ = static_cast<ShellExtensionSystem*>( 162 extension_system_ = static_cast<ShellExtensionSystem*>(
163 ExtensionSystem::Get(browser_context_.get())); 163 ExtensionSystem::Get(browser_context_.get()));
164 extension_system_->InitForRegularProfile(true); 164 extension_system_->InitForRegularProfile(true);
165 } 165 }
166 166
167 } // namespace extensions 167 } // namespace extensions
OLDNEW
« components/user_manager/user_manager_base.cc ('K') | « components/user_manager/user_manager_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698