| 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 14 matching lines...) Expand all Loading... |
| 25 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
| 26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
| 27 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "chrome/browser/app_mode/app_mode_utils.h" | 28 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 29 #include "chrome/browser/chrome_notification_types.h" | 29 #include "chrome/browser/chrome_notification_types.h" |
| 30 #include "chrome/browser/defaults.h" | 30 #include "chrome/browser/defaults.h" |
| 31 #include "chrome/browser/extensions/app_icon_loader_impl.h" | 31 #include "chrome/browser/extensions/app_icon_loader_impl.h" |
| 32 #include "chrome/browser/extensions/extension_util.h" | 32 #include "chrome/browser/extensions/extension_util.h" |
| 33 #include "chrome/browser/extensions/launch_util.h" | 33 #include "chrome/browser/extensions/launch_util.h" |
| 34 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 34 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 35 #include "chrome/browser/prefs/pref_service_syncable.h" | |
| 36 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 35 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
| 37 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
| 38 #include "chrome/browser/profiles/profile_manager.h" | 37 #include "chrome/browser/profiles/profile_manager.h" |
| 39 #include "chrome/browser/ui/ash/app_sync_ui_state.h" | 38 #include "chrome/browser/ui/ash/app_sync_ui_state.h" |
| 40 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 39 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 41 #include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
" | 40 #include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
" |
| 42 #include "chrome/browser/ui/ash/launcher/app_window_launcher_controller.h" | 41 #include "chrome/browser/ui/ash/launcher/app_window_launcher_controller.h" |
| 43 #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" | 42 #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" |
| 44 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 43 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
| 45 #include "chrome/browser/ui/ash/launcher/browser_status_monitor.h" | 44 #include "chrome/browser/ui/ash/launcher/browser_status_monitor.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 62 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 61 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
| 63 #include "chrome/browser/ui/host_desktop.h" | 62 #include "chrome/browser/ui/host_desktop.h" |
| 64 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 63 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 65 #include "chrome/browser/web_applications/web_app.h" | 64 #include "chrome/browser/web_applications/web_app.h" |
| 66 #include "chrome/common/chrome_switches.h" | 65 #include "chrome/common/chrome_switches.h" |
| 67 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 66 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
| 68 #include "chrome/common/pref_names.h" | 67 #include "chrome/common/pref_names.h" |
| 69 #include "chrome/common/url_constants.h" | 68 #include "chrome/common/url_constants.h" |
| 70 #include "chrome/grit/generated_resources.h" | 69 #include "chrome/grit/generated_resources.h" |
| 71 #include "components/favicon/content/content_favicon_driver.h" | 70 #include "components/favicon/content/content_favicon_driver.h" |
| 71 #include "components/syncable_prefs/pref_service_syncable.h" |
| 72 #include "content/public/browser/navigation_entry.h" | 72 #include "content/public/browser/navigation_entry.h" |
| 73 #include "content/public/browser/web_contents.h" | 73 #include "content/public/browser/web_contents.h" |
| 74 #include "extensions/browser/extension_prefs.h" | 74 #include "extensions/browser/extension_prefs.h" |
| 75 #include "extensions/browser/extension_registry.h" | 75 #include "extensions/browser/extension_registry.h" |
| 76 #include "extensions/browser/extension_system.h" | 76 #include "extensions/browser/extension_system.h" |
| 77 #include "extensions/browser/extension_util.h" | 77 #include "extensions/browser/extension_util.h" |
| 78 #include "extensions/common/constants.h" | 78 #include "extensions/common/constants.h" |
| 79 #include "extensions/common/extension.h" | 79 #include "extensions/common/extension.h" |
| 80 #include "extensions/common/extension_resource.h" | 80 #include "extensions/common/extension_resource.h" |
| 81 #include "extensions/common/manifest_handlers/icons_handler.h" | 81 #include "extensions/common/manifest_handlers/icons_handler.h" |
| (...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 void ChromeLauncherController::ReleaseProfile() { | 2100 void ChromeLauncherController::ReleaseProfile() { |
| 2101 if (app_sync_ui_state_) | 2101 if (app_sync_ui_state_) |
| 2102 app_sync_ui_state_->RemoveObserver(this); | 2102 app_sync_ui_state_->RemoveObserver(this); |
| 2103 | 2103 |
| 2104 extensions::ExtensionRegistry::Get(profile_)->RemoveObserver(this); | 2104 extensions::ExtensionRegistry::Get(profile_)->RemoveObserver(this); |
| 2105 | 2105 |
| 2106 PrefServiceSyncableFromProfile(profile_)->RemoveObserver(this); | 2106 PrefServiceSyncableFromProfile(profile_)->RemoveObserver(this); |
| 2107 | 2107 |
| 2108 pref_change_registrar_.RemoveAll(); | 2108 pref_change_registrar_.RemoveAll(); |
| 2109 } | 2109 } |
| OLD | NEW |