| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "ash/desktop_background/desktop_background_controller.h" | 10 #include "ash/desktop_background/desktop_background_controller.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 #include "grit/ui_resources.h" | 82 #include "grit/ui_resources.h" |
| 83 #include "net/base/url_util.h" | 83 #include "net/base/url_util.h" |
| 84 #include "ui/aura/window.h" | 84 #include "ui/aura/window.h" |
| 85 #include "ui/aura/window_event_dispatcher.h" | 85 #include "ui/aura/window_event_dispatcher.h" |
| 86 #include "ui/base/l10n/l10n_util.h" | 86 #include "ui/base/l10n/l10n_util.h" |
| 87 #include "ui/keyboard/keyboard_util.h" | 87 #include "ui/keyboard/keyboard_util.h" |
| 88 #include "ui/wm/core/window_animations.h" | 88 #include "ui/wm/core/window_animations.h" |
| 89 | 89 |
| 90 #if defined(OS_CHROMEOS) | 90 #if defined(OS_CHROMEOS) |
| 91 #include "chrome/browser/browser_process.h" | 91 #include "chrome/browser/browser_process.h" |
| 92 #include "chrome/browser/chromeos/login/user_manager.h" | 92 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 93 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" | 93 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
| 94 #include "chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_contr
oller.h" | 94 #include "chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_contr
oller.h" |
| 95 #include "chrome/browser/ui/ash/launcher/multi_profile_browser_status_monitor.h" | 95 #include "chrome/browser/ui/ash/launcher/multi_profile_browser_status_monitor.h" |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 using extensions::Extension; | 98 using extensions::Extension; |
| 99 using extensions::UnloadedExtensionInfo; | 99 using extensions::UnloadedExtensionInfo; |
| 100 using extension_misc::kGmailAppId; | 100 using extension_misc::kGmailAppId; |
| 101 using content::WebContents; | 101 using content::WebContents; |
| 102 | 102 |
| (...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2003 } | 2003 } |
| 2004 | 2004 |
| 2005 void ChromeLauncherController::ReleaseProfile() { | 2005 void ChromeLauncherController::ReleaseProfile() { |
| 2006 if (app_sync_ui_state_) | 2006 if (app_sync_ui_state_) |
| 2007 app_sync_ui_state_->RemoveObserver(this); | 2007 app_sync_ui_state_->RemoveObserver(this); |
| 2008 | 2008 |
| 2009 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); | 2009 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); |
| 2010 | 2010 |
| 2011 pref_change_registrar_.RemoveAll(); | 2011 pref_change_registrar_.RemoveAll(); |
| 2012 } | 2012 } |
| OLD | NEW |