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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 494033002: Move AppWindow to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include in chrome_shell_delegate.cc Created 6 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/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index fc9a85bda91bf556ed095506c4c7932fd3e7626b..1696b14f8ffc87853098d42969eea291e7ecdad9 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -869,7 +869,7 @@ void SystemTrayDelegateChromeOS::SetProfile(Profile* profile) {
user_profile_ = profile;
// Start observing the AppWindowRegistry of the newly set |user_profile_|.
- apps::AppWindowRegistry::Get(user_profile_)->AddObserver(this);
+ extensions::AppWindowRegistry::Get(user_profile_)->AddObserver(this);
PrefService* prefs = profile->GetPrefs();
user_pref_registrar_.reset(new PrefChangeRegistrar);
@@ -1011,9 +1011,9 @@ void SystemTrayDelegateChromeOS::StopObservingAppWindowRegistry() {
if (!user_profile_)
return;
- apps::AppWindowRegistry* registry =
- apps::AppWindowRegistry::Factory::GetForBrowserContext(user_profile_,
- false);
+ extensions::AppWindowRegistry* registry =
+ extensions::AppWindowRegistry::Factory::GetForBrowserContext(
+ user_profile_, false);
if (registry)
registry->RemoveObserver(this);
}
@@ -1033,7 +1033,8 @@ void SystemTrayDelegateChromeOS::NotifyIfLastWindowClosed() {
}
}
- if (!apps::AppWindowRegistry::Get(user_profile_)->app_windows().empty()) {
+ if (!extensions::AppWindowRegistry::Get(
+ user_profile_)->app_windows().empty()) {
// The current user has at least one open app window.
return;
}
@@ -1279,9 +1280,9 @@ void SystemTrayDelegateChromeOS::OnBrowserRemoved(Browser* browser) {
NotifyIfLastWindowClosed();
}
-// Overridden from apps::AppWindowRegistry::Observer.
+// Overridden from extensions::AppWindowRegistry::Observer.
void SystemTrayDelegateChromeOS::OnAppWindowRemoved(
- apps::AppWindow* app_window) {
+ extensions::AppWindow* app_window) {
NotifyIfLastWindowClosed();
}
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698