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" |
11 #include "ash/multi_profile_uma.h" | 11 #include "ash/multi_profile_uma.h" |
12 #include "ash/root_window_controller.h" | 12 #include "ash/root_window_controller.h" |
13 #include "ash/shelf/shelf.h" | 13 #include "ash/shelf/shelf.h" |
14 #include "ash/shelf/shelf_item_delegate_manager.h" | 14 #include "ash/shelf/shelf_item_delegate_manager.h" |
15 #include "ash/shelf/shelf_layout_manager.h" | 15 #include "ash/shelf/shelf_layout_manager.h" |
16 #include "ash/shelf/shelf_model.h" | 16 #include "ash/shelf/shelf_model.h" |
17 #include "ash/shelf/shelf_widget.h" | 17 #include "ash/shelf/shelf_widget.h" |
18 #include "ash/shell.h" | 18 #include "ash/shell.h" |
19 #include "ash/wm/window_util.h" | 19 #include "ash/wm/window_util.h" |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/prefs/scoped_user_pref_update.h" | 21 #include "base/prefs/scoped_user_pref_update.h" |
22 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
23 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
24 #include "base/values.h" | 24 #include "base/values.h" |
25 #include "chrome/browser/app_mode/app_mode_utils.h" | 25 #include "chrome/browser/app_mode/app_mode_utils.h" |
26 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
27 #include "chrome/browser/defaults.h" | 27 #include "chrome/browser/defaults.h" |
28 #include "chrome/browser/extensions/app_icon_loader_impl.h" | 28 #include "chrome/browser/extensions/app_icon_loader_impl.h" |
29 #include "chrome/browser/extensions/extension_service.h" | 29 #include "chrome/browser/extensions/extension_service.h" |
30 #include "chrome/browser/extensions/extension_system.h" | |
31 #include "chrome/browser/extensions/extension_util.h" | 30 #include "chrome/browser/extensions/extension_util.h" |
32 #include "chrome/browser/extensions/launch_util.h" | 31 #include "chrome/browser/extensions/launch_util.h" |
33 #include "chrome/browser/favicon/favicon_tab_helper.h" | 32 #include "chrome/browser/favicon/favicon_tab_helper.h" |
34 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 33 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
35 #include "chrome/browser/prefs/pref_service_syncable.h" | 34 #include "chrome/browser/prefs/pref_service_syncable.h" |
36 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
37 #include "chrome/browser/profiles/profile_manager.h" | 36 #include "chrome/browser/profiles/profile_manager.h" |
38 #include "chrome/browser/ui/ash/app_sync_ui_state.h" | 37 #include "chrome/browser/ui/ash/app_sync_ui_state.h" |
39 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 38 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
40 #include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
" | 39 #include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
" |
(...skipping 22 matching lines...) Expand all Loading... |
63 #include "chrome/browser/web_applications/web_app.h" | 62 #include "chrome/browser/web_applications/web_app.h" |
64 #include "chrome/common/chrome_switches.h" | 63 #include "chrome/common/chrome_switches.h" |
65 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 64 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
66 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 65 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
67 #include "chrome/common/pref_names.h" | 66 #include "chrome/common/pref_names.h" |
68 #include "chrome/common/url_constants.h" | 67 #include "chrome/common/url_constants.h" |
69 #include "content/public/browser/navigation_entry.h" | 68 #include "content/public/browser/navigation_entry.h" |
70 #include "content/public/browser/notification_registrar.h" | 69 #include "content/public/browser/notification_registrar.h" |
71 #include "content/public/browser/notification_service.h" | 70 #include "content/public/browser/notification_service.h" |
72 #include "content/public/browser/web_contents.h" | 71 #include "content/public/browser/web_contents.h" |
| 72 #include "extensions/browser/extension_system.h" |
73 #include "extensions/common/extension.h" | 73 #include "extensions/common/extension.h" |
74 #include "extensions/common/extension_resource.h" | 74 #include "extensions/common/extension_resource.h" |
75 #include "extensions/common/url_pattern.h" | 75 #include "extensions/common/url_pattern.h" |
76 #include "grit/ash_resources.h" | 76 #include "grit/ash_resources.h" |
77 #include "grit/chromium_strings.h" | 77 #include "grit/chromium_strings.h" |
78 #include "grit/generated_resources.h" | 78 #include "grit/generated_resources.h" |
79 #include "grit/theme_resources.h" | 79 #include "grit/theme_resources.h" |
80 #include "grit/ui_resources.h" | 80 #include "grit/ui_resources.h" |
81 #include "net/base/url_util.h" | 81 #include "net/base/url_util.h" |
82 #include "ui/aura/root_window.h" | 82 #include "ui/aura/root_window.h" |
(...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 } | 2063 } |
2064 | 2064 |
2065 void ChromeLauncherController::ReleaseProfile() { | 2065 void ChromeLauncherController::ReleaseProfile() { |
2066 if (app_sync_ui_state_) | 2066 if (app_sync_ui_state_) |
2067 app_sync_ui_state_->RemoveObserver(this); | 2067 app_sync_ui_state_->RemoveObserver(this); |
2068 | 2068 |
2069 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); | 2069 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); |
2070 | 2070 |
2071 pref_change_registrar_.RemoveAll(); | 2071 pref_change_registrar_.RemoveAll(); |
2072 } | 2072 } |
OLD | NEW |