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 11 matching lines...) Expand all Loading... |
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" | 30 #include "chrome/browser/extensions/extension_system.h" |
31 #include "chrome/browser/extensions/extension_util.h" | 31 #include "chrome/browser/extensions/extension_util.h" |
| 32 #include "chrome/browser/extensions/launch_util.h" |
32 #include "chrome/browser/favicon/favicon_tab_helper.h" | 33 #include "chrome/browser/favicon/favicon_tab_helper.h" |
33 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 34 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
34 #include "chrome/browser/prefs/pref_service_syncable.h" | 35 #include "chrome/browser/prefs/pref_service_syncable.h" |
35 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
36 #include "chrome/browser/profiles/profile_manager.h" | 37 #include "chrome/browser/profiles/profile_manager.h" |
37 #include "chrome/browser/ui/ash/app_sync_ui_state.h" | 38 #include "chrome/browser/ui/ash/app_sync_ui_state.h" |
38 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 39 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
39 #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
" |
40 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 41 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
41 #include "chrome/browser/ui/ash/launcher/browser_status_monitor.h" | 42 #include "chrome/browser/ui/ash/launcher/browser_status_monitor.h" |
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 } | 2014 } |
2014 | 2015 |
2015 void ChromeLauncherController::ReleaseProfile() { | 2016 void ChromeLauncherController::ReleaseProfile() { |
2016 if (app_sync_ui_state_) | 2017 if (app_sync_ui_state_) |
2017 app_sync_ui_state_->RemoveObserver(this); | 2018 app_sync_ui_state_->RemoveObserver(this); |
2018 | 2019 |
2019 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); | 2020 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); |
2020 | 2021 |
2021 pref_change_registrar_.RemoveAll(); | 2022 pref_change_registrar_.RemoveAll(); |
2022 } | 2023 } |
OLD | NEW |