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

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

Issue 166903006: Move *ShellWindowLauncher* to *AppWindowLauncher* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a spot Created 6 years, 10 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/multi_profile_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/multi_profile_shell_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.cc
similarity index 79%
rename from chrome/browser/ui/ash/launcher/multi_profile_shell_window_launcher_controller.cc
rename to chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.cc
index 7e8d8083a869c77d51ed8a3325775c4755c217f2..5069b427ac69e9e94e275102a23900360cd555b6 100644
--- a/chrome/browser/ui/ash/launcher/multi_profile_shell_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/ash/launcher/multi_profile_shell_window_launcher_controller.h"
+#include "chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.h"
#include "apps/app_window.h"
#include "chrome/browser/profiles/profile.h"
@@ -14,20 +14,17 @@ namespace {
bool ControlsWindow(aura::Window* window) {
return chrome::GetHostDesktopTypeForNativeWindow(window) ==
- chrome::HOST_DESKTOP_TYPE_ASH;
+ chrome::HOST_DESKTOP_TYPE_ASH;
}
} // namespace
+MultiProfileAppWindowLauncherController::
+ MultiProfileAppWindowLauncherController(ChromeLauncherController* owner)
+ : AppWindowLauncherController(owner) {}
-MultiProfileShellWindowLauncherController::
- MultiProfileShellWindowLauncherController(
- ChromeLauncherController* owner)
- : ShellWindowLauncherController(owner) {
-}
-
-MultiProfileShellWindowLauncherController::
- ~MultiProfileShellWindowLauncherController() {
+MultiProfileAppWindowLauncherController::
+ ~MultiProfileAppWindowLauncherController() {
// We need to remove all Registry observers for added users.
for (AppWindowRegistryList::iterator it = multi_user_registry_.begin();
it != multi_user_registry_.end();
@@ -35,7 +32,7 @@ MultiProfileShellWindowLauncherController::
(*it)->RemoveObserver(this);
}
-void MultiProfileShellWindowLauncherController::ActiveUserChanged(
+void MultiProfileAppWindowLauncherController::ActiveUserChanged(
const std::string& user_email) {
// The active user has changed and we need to traverse our list of items to
// show / hide them one by one. To avoid that a user dependent state
@@ -63,7 +60,7 @@ void MultiProfileShellWindowLauncherController::ActiveUserChanged(
}
}
-void MultiProfileShellWindowLauncherController::AdditionalUserAddedToSession(
+void MultiProfileAppWindowLauncherController::AdditionalUserAddedToSession(
Profile* profile) {
// Each users AppWindowRegistry needs to be observed.
apps::AppWindowRegistry* registry = apps::AppWindowRegistry::Get(profile);
@@ -71,7 +68,7 @@ void MultiProfileShellWindowLauncherController::AdditionalUserAddedToSession(
registry->AddObserver(this);
}
-void MultiProfileShellWindowLauncherController::OnAppWindowAdded(
+void MultiProfileAppWindowLauncherController::OnAppWindowAdded(
apps::AppWindow* app_window) {
if (!ControlsWindow(app_window->GetNativeWindow()))
return;
@@ -81,12 +78,12 @@ void MultiProfileShellWindowLauncherController::OnAppWindowAdded(
RegisterApp(app_window);
}
-void MultiProfileShellWindowLauncherController::OnAppWindowRemoved(
+void MultiProfileAppWindowLauncherController::OnAppWindowRemoved(
apps::AppWindow* app_window) {
if (!ControlsWindow(app_window->GetNativeWindow()))
return;
- // If the application is registered with ShellWindowLauncher (because the user
+ // If the application is registered with AppWindowLauncher (because the user
// is currently active), the OnWindowDestroying observer has already (or will
// soon) unregister it independently from the shelf. If it was not registered
// we don't need to do anything anyways. As such, all which is left to do here

Powered by Google App Engine
This is Rietveld 408576698