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

Unified Diff: ash/shell.cc

Issue 22429004: Refactor LauncherDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some comments Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 1bade434dd44a35b45a7547c5bd7dd0329067b33..2048e65c75965f34cddd65dbb8402ba8cc5c1fd4 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -22,7 +22,7 @@
#include "ash/focus_cycler.h"
#include "ash/high_contrast/high_contrast_controller.h"
#include "ash/host/root_window_host_factory.h"
-#include "ash/launcher/launcher_delegate.h"
+#include "ash/launcher/launcher_delegate_proxy.h"
#include "ash/launcher/launcher_model.h"
#include "ash/magnifier/magnification_controller.h"
#include "ash/magnifier/partial_magnification_controller.h"
@@ -852,9 +852,9 @@ SystemTray* Shell::GetPrimarySystemTray() {
LauncherDelegate* Shell::GetLauncherDelegate() {
Mr4D (OOO till 08-26) 2013/08/13 18:18:24 Somehow I need to think about this for a while. Di
simonhong_ 2013/08/13 19:54:56 sky didn't tell specific implementation details fo
if (!launcher_delegate_) {
+ DCHECK(!launcher_model_);
Mr4D (OOO till 08-26) 2013/08/13 18:18:24 I assume you mean "!launcher_model_.get()" ?
simonhong_ 2013/08/13 19:54:56 Done. But, I think DCHECK(!launcher_delegate_) als
launcher_model_.reset(new LauncherModel);
- launcher_delegate_.reset(
- delegate_->CreateLauncherDelegate(launcher_model_.get()));
+ launcher_delegate_.reset(new internal::LauncherDelegateProxy);
}
return launcher_delegate_.get();
}

Powered by Google App Engine
This is Rietveld 408576698