OLD | NEW |
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/wm_shell.h" | 8 #include "ash/common/wm_shell.h" |
9 #include "ash/content/shell_content_state.h" | 9 #include "ash/content/shell_content_state.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 init_params.delegate = delegate_; | 130 init_params.delegate = delegate_; |
131 init_params.context_factory = content::GetContextFactory(); | 131 init_params.context_factory = content::GetContextFactory(); |
132 init_params.context_factory_private = content::GetContextFactoryPrivate(); | 132 init_params.context_factory_private = content::GetContextFactoryPrivate(); |
133 init_params.blocking_pool = content::BrowserThread::GetBlockingPool(); | 133 init_params.blocking_pool = content::BrowserThread::GetBlockingPool(); |
134 ash::Shell::CreateInstance(init_params); | 134 ash::Shell::CreateInstance(init_params); |
135 | 135 |
136 // Initialize session controller client and create fake sessions before | 136 // Initialize session controller client and create fake sessions before |
137 // creating shelf. | 137 // creating shelf. |
138 example_session_controller_client_ = | 138 example_session_controller_client_ = |
139 base::MakeUnique<ExampleSessionControllerClient>( | 139 base::MakeUnique<ExampleSessionControllerClient>( |
140 WmShell::Get()->session_controller()); | 140 Shell::Get()->session_controller()); |
141 example_session_controller_client_->Initialize(); | 141 example_session_controller_client_->Initialize(); |
142 | 142 |
143 ash::WmShell::Get()->CreateShelfView(); | 143 ash::Shell::Get()->CreateShelfView(); |
144 ash::WmShell::Get()->UpdateAfterLoginStatusChange(LoginStatus::USER); | 144 ash::Shell::Get()->UpdateAfterLoginStatusChange(LoginStatus::USER); |
145 | 145 |
146 window_watcher_.reset(new ash::shell::WindowWatcher); | 146 window_watcher_.reset(new ash::shell::WindowWatcher); |
147 display::Screen::GetScreen()->AddObserver(window_watcher_.get()); | 147 display::Screen::GetScreen()->AddObserver(window_watcher_.get()); |
148 | 148 |
149 ash::shell::InitWindowTypeLauncher(); | 149 ash::shell::InitWindowTypeLauncher(); |
150 | 150 |
151 // Initialize the example app list presenter. | 151 // Initialize the example app list presenter. |
152 example_app_list_presenter_ = base::MakeUnique<ExampleAppListPresenter>(); | 152 example_app_list_presenter_ = base::MakeUnique<ExampleAppListPresenter>(); |
153 Shell::Get()->app_list()->SetAppListPresenter( | 153 Shell::Get()->app_list()->SetAppListPresenter( |
154 example_app_list_presenter_->CreateInterfacePtrAndBind()); | 154 example_app_list_presenter_->CreateInterfacePtrAndBind()); |
(...skipping 23 matching lines...) Expand all Loading... |
178 browser_context_.reset(); | 178 browser_context_.reset(); |
179 } | 179 } |
180 | 180 |
181 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { | 181 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { |
182 base::RunLoop().Run(); | 182 base::RunLoop().Run(); |
183 return true; | 183 return true; |
184 } | 184 } |
185 | 185 |
186 } // namespace shell | 186 } // namespace shell |
187 } // namespace ash | 187 } // namespace ash |
OLD | NEW |