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

Side by Side Diff: ash/shell/content/client/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 | « ash/shell.cc ('k') | ash/shell_init_params.h » ('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 "ash/shell/content/client/shell_browser_main_parts.h" 5 #include "ash/shell/content/client/shell_browser_main_parts.h"
6 6
7 #include "ash/common/login_status.h" 7 #include "ash/common/login_status.h"
8 #include "ash/common/material_design/material_design_controller.h" 8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/common/wm_shell.h" 9 #include "ash/common/wm_shell.h"
10 #include "ash/content/shell_content_state.h" 10 #include "ash/content/shell_content_state.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 bluez::BluezDBusManager::Initialize(nullptr, true /* use stub */); 129 bluez::BluezDBusManager::Initialize(nullptr, true /* use stub */);
130 #endif 130 #endif
131 131
132 ShellContentState::SetInstance( 132 ShellContentState::SetInstance(
133 new ShellContentStateImpl(browser_context_.get())); 133 new ShellContentStateImpl(browser_context_.get()));
134 ui::MaterialDesignController::Initialize(); 134 ui::MaterialDesignController::Initialize();
135 ash::ShellInitParams init_params; 135 ash::ShellInitParams init_params;
136 init_params.delegate = delegate_; 136 init_params.delegate = delegate_;
137 init_params.context_factory = content::GetContextFactory(); 137 init_params.context_factory = content::GetContextFactory();
138 init_params.context_factory_private = content::GetContextFactoryPrivate();
138 init_params.blocking_pool = content::BrowserThread::GetBlockingPool(); 139 init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
139 ash::Shell::CreateInstance(init_params); 140 ash::Shell::CreateInstance(init_params);
140 ash::WmShell::Get()->CreateShelf(); 141 ash::WmShell::Get()->CreateShelf();
141 ash::WmShell::Get()->UpdateAfterLoginStatusChange(LoginStatus::USER); 142 ash::WmShell::Get()->UpdateAfterLoginStatusChange(LoginStatus::USER);
142 143
143 window_watcher_.reset(new ash::shell::WindowWatcher); 144 window_watcher_.reset(new ash::shell::WindowWatcher);
144 display::Screen::GetScreen()->AddObserver(window_watcher_.get()); 145 display::Screen::GetScreen()->AddObserver(window_watcher_.get());
145 146
146 ash::shell::InitWindowTypeLauncher(); 147 ash::shell::InitWindowTypeLauncher();
147 148
(...skipping 24 matching lines...) Expand all
172 browser_context_.reset(); 173 browser_context_.reset();
173 } 174 }
174 175
175 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { 176 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) {
176 base::RunLoop().Run(); 177 base::RunLoop().Run();
177 return true; 178 return true;
178 } 179 }
179 180
180 } // namespace shell 181 } // namespace shell
181 } // namespace ash 182 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/shell_init_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698