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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc

Issue 22887015: Remove PerBrowser launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index 442f2e83c1abc8272e9877722f593d6fd6a78de7..b7ce1144be4472e59e12e37b6a3768dcd1232909 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -4,10 +4,7 @@
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
-#include "ash/ash_switches.h"
-#include "base/command_line.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h"
-#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h"
// statics
ChromeLauncherController* ChromeLauncherController::instance_ = NULL;
@@ -19,11 +16,7 @@ ChromeLauncherController* ChromeLauncherController::CreateInstance(
// We do not check here for re-creation of the ChromeLauncherController since
// it appears that it might be intentional that the ChromeLauncherController
// can be re-created.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kAshDisablePerAppLauncher))
- instance_ = new ChromeLauncherControllerPerApp(profile, model);
- else
- instance_ = new ChromeLauncherControllerPerBrowser(profile, model);
+ instance_ = new ChromeLauncherControllerPerApp(profile, model);
return instance_;
}
@@ -31,9 +24,3 @@ ChromeLauncherController::~ChromeLauncherController() {
if (instance_ == this)
instance_ = NULL;
}
-
-bool ChromeLauncherController::IsPerAppLauncher() {
- if (!instance_)
- return false;
- return instance_->GetPerAppInterface() != NULL;
-}

Powered by Google App Engine
This is Rietveld 408576698