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

Unified Diff: ash/shell.cc

Issue 273073002: Changes code using Compositor to pass in ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tooltip on chromeos Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.h ('k') | ash/shell/content_client/shell_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index d2322d8d42e89c7d6cc339c7b0ffa0649ac9474d..540f502aa57e8e3b37223c919b3066dd8a8fef88 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -168,6 +168,7 @@ class AshVisibilityController : public ::wm::VisibilityController {
AshWindowTreeHostInitParams ShellInitParamsToAshWindowTreeHostInitParams(
const ShellInitParams& shell_init_params) {
AshWindowTreeHostInitParams ash_init_params;
+ ash_init_params.context_factory = shell_init_params.context_factory;
#if defined(OS_WIN)
ash_init_params.remote_hwnd = shell_init_params.remote_hwnd;
#endif
@@ -187,7 +188,7 @@ bool Shell::initially_hide_cursor_ = false;
// static
Shell* Shell::CreateInstance(const ShellInitParams& init_params) {
CHECK(!instance_);
- instance_ = new Shell(init_params.delegate);
+ instance_ = new Shell(init_params.delegate, init_params.context_factory);
instance_->Init(init_params);
return instance_;
}
@@ -617,7 +618,7 @@ void Shell::DoInitialWorkspaceAnimation() {
////////////////////////////////////////////////////////////////////////////////
// Shell, private:
-Shell::Shell(ShellDelegate* delegate)
+Shell::Shell(ShellDelegate* delegate, ui::ContextFactory* context_factory)
: target_root_window_(NULL),
scoped_target_root_window_(NULL),
delegate_(delegate),
@@ -635,7 +636,7 @@ Shell::Shell(ShellDelegate* delegate)
DCHECK(delegate_.get());
gpu_support_.reset(delegate_->CreateGPUSupport());
display_manager_.reset(new DisplayManager);
- display_controller_.reset(new DisplayController);
+ display_controller_.reset(new DisplayController(context_factory));
#if defined(OS_CHROMEOS) && defined(USE_X11)
user_metrics_recorder_.reset(new UserMetricsRecorder);
#endif // defined(OS_CHROMEOS)
« no previous file with comments | « ash/shell.h ('k') | ash/shell/content_client/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698