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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #include "content/public/browser/web_contents.h" | 71 #include "content/public/browser/web_contents.h" |
72 #include "extensions/browser/extension_prefs.h" | 72 #include "extensions/browser/extension_prefs.h" |
73 #include "extensions/browser/extension_registry.h" | 73 #include "extensions/browser/extension_registry.h" |
74 #include "extensions/browser/extension_system.h" | 74 #include "extensions/browser/extension_system.h" |
75 #include "extensions/browser/extension_util.h" | 75 #include "extensions/browser/extension_util.h" |
76 #include "extensions/common/extension.h" | 76 #include "extensions/common/extension.h" |
77 #include "extensions/common/extension_resource.h" | 77 #include "extensions/common/extension_resource.h" |
78 #include "extensions/common/manifest_handlers/icons_handler.h" | 78 #include "extensions/common/manifest_handlers/icons_handler.h" |
79 #include "extensions/common/url_pattern.h" | 79 #include "extensions/common/url_pattern.h" |
80 #include "grit/ash_resources.h" | 80 #include "grit/ash_resources.h" |
81 #include "grit/chromium_strings.h" | |
82 #include "grit/generated_resources.h" | 81 #include "grit/generated_resources.h" |
83 #include "grit/theme_resources.h" | 82 #include "grit/theme_resources.h" |
84 #include "grit/ui_resources.h" | 83 #include "grit/ui_resources.h" |
85 #include "net/base/url_util.h" | 84 #include "net/base/url_util.h" |
86 #include "ui/aura/window.h" | 85 #include "ui/aura/window.h" |
87 #include "ui/aura/window_event_dispatcher.h" | 86 #include "ui/aura/window_event_dispatcher.h" |
88 #include "ui/base/l10n/l10n_util.h" | 87 #include "ui/base/l10n/l10n_util.h" |
89 #include "ui/keyboard/keyboard_util.h" | 88 #include "ui/keyboard/keyboard_util.h" |
90 #include "ui/wm/core/window_animations.h" | 89 #include "ui/wm/core/window_animations.h" |
91 | 90 |
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 } | 2094 } |
2096 | 2095 |
2097 void ChromeLauncherController::ReleaseProfile() { | 2096 void ChromeLauncherController::ReleaseProfile() { |
2098 if (app_sync_ui_state_) | 2097 if (app_sync_ui_state_) |
2099 app_sync_ui_state_->RemoveObserver(this); | 2098 app_sync_ui_state_->RemoveObserver(this); |
2100 | 2099 |
2101 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); | 2100 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); |
2102 | 2101 |
2103 pref_change_registrar_.RemoveAll(); | 2102 pref_change_registrar_.RemoveAll(); |
2104 } | 2103 } |
OLD | NEW |