| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "chrome/browser/ui/browser_finder.h" | 54 #include "chrome/browser/ui/browser_finder.h" |
| 55 #include "chrome/browser/ui/browser_list.h" | 55 #include "chrome/browser/ui/browser_list.h" |
| 56 #include "chrome/browser/ui/browser_tabstrip.h" | 56 #include "chrome/browser/ui/browser_tabstrip.h" |
| 57 #include "chrome/browser/ui/browser_window.h" | 57 #include "chrome/browser/ui/browser_window.h" |
| 58 #include "chrome/browser/ui/extensions/application_launch.h" | 58 #include "chrome/browser/ui/extensions/application_launch.h" |
| 59 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 59 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
| 60 #include "chrome/browser/ui/host_desktop.h" | 60 #include "chrome/browser/ui/host_desktop.h" |
| 61 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 61 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 62 #include "chrome/browser/web_applications/web_app.h" | 62 #include "chrome/browser/web_applications/web_app.h" |
| 63 #include "chrome/common/chrome_switches.h" | 63 #include "chrome/common/chrome_switches.h" |
| 64 #include "chrome/common/extensions/extension.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/common/extension.h" |
| 73 #include "extensions/common/extension_resource.h" | 73 #include "extensions/common/extension_resource.h" |
| 74 #include "extensions/common/url_pattern.h" | 74 #include "extensions/common/url_pattern.h" |
| 75 #include "grit/ash_resources.h" | 75 #include "grit/ash_resources.h" |
| 76 #include "grit/chromium_strings.h" | 76 #include "grit/chromium_strings.h" |
| 77 #include "grit/generated_resources.h" | 77 #include "grit/generated_resources.h" |
| 78 #include "grit/theme_resources.h" | 78 #include "grit/theme_resources.h" |
| 79 #include "grit/ui_resources.h" | 79 #include "grit/ui_resources.h" |
| 80 #include "net/base/url_util.h" | 80 #include "net/base/url_util.h" |
| 81 #include "ui/aura/root_window.h" | 81 #include "ui/aura/root_window.h" |
| 82 #include "ui/aura/window.h" | 82 #include "ui/aura/window.h" |
| (...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 } | 2015 } |
| 2016 | 2016 |
| 2017 void ChromeLauncherController::ReleaseProfile() { | 2017 void ChromeLauncherController::ReleaseProfile() { |
| 2018 if (app_sync_ui_state_) | 2018 if (app_sync_ui_state_) |
| 2019 app_sync_ui_state_->RemoveObserver(this); | 2019 app_sync_ui_state_->RemoveObserver(this); |
| 2020 | 2020 |
| 2021 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); | 2021 PrefServiceSyncable::FromProfile(profile_)->RemoveObserver(this); |
| 2022 | 2022 |
| 2023 pref_change_registrar_.RemoveAll(); | 2023 pref_change_registrar_.RemoveAll(); |
| 2024 } | 2024 } |
| OLD | NEW |