| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 66 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 67 #include "chrome/browser/web_applications/web_app.h" | 67 #include "chrome/browser/web_applications/web_app.h" |
| 68 #include "chrome/common/chrome_switches.h" | 68 #include "chrome/common/chrome_switches.h" |
| 69 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 69 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
| 70 #include "chrome/common/pref_names.h" | 70 #include "chrome/common/pref_names.h" |
| 71 #include "chrome/common/url_constants.h" | 71 #include "chrome/common/url_constants.h" |
| 72 #include "chrome/grit/generated_resources.h" | 72 #include "chrome/grit/generated_resources.h" |
| 73 #include "components/favicon/content/content_favicon_driver.h" | 73 #include "components/favicon/content/content_favicon_driver.h" |
| 74 #include "components/prefs/scoped_user_pref_update.h" | 74 #include "components/prefs/scoped_user_pref_update.h" |
| 75 #include "components/signin/core/account_id/account_id.h" | 75 #include "components/signin/core/account_id/account_id.h" |
| 76 #include "components/strings/grit/components_strings.h" |
| 76 #include "components/syncable_prefs/pref_service_syncable.h" | 77 #include "components/syncable_prefs/pref_service_syncable.h" |
| 77 #include "content/public/browser/navigation_entry.h" | 78 #include "content/public/browser/navigation_entry.h" |
| 78 #include "content/public/browser/web_contents.h" | 79 #include "content/public/browser/web_contents.h" |
| 79 #include "extensions/browser/extension_prefs.h" | 80 #include "extensions/browser/extension_prefs.h" |
| 80 #include "extensions/browser/extension_registry.h" | 81 #include "extensions/browser/extension_registry.h" |
| 81 #include "extensions/browser/extension_system.h" | 82 #include "extensions/browser/extension_system.h" |
| 82 #include "extensions/browser/extension_util.h" | 83 #include "extensions/browser/extension_util.h" |
| 83 #include "extensions/common/constants.h" | 84 #include "extensions/common/constants.h" |
| 84 #include "extensions/common/extension.h" | 85 #include "extensions/common/extension.h" |
| 85 #include "extensions/common/extension_resource.h" | 86 #include "extensions/common/extension_resource.h" |
| (...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2224 void ChromeLauncherController::ReleaseProfile() { | 2225 void ChromeLauncherController::ReleaseProfile() { |
| 2225 if (app_sync_ui_state_) | 2226 if (app_sync_ui_state_) |
| 2226 app_sync_ui_state_->RemoveObserver(this); | 2227 app_sync_ui_state_->RemoveObserver(this); |
| 2227 | 2228 |
| 2228 extensions::ExtensionRegistry::Get(profile_)->RemoveObserver(this); | 2229 extensions::ExtensionRegistry::Get(profile_)->RemoveObserver(this); |
| 2229 | 2230 |
| 2230 PrefServiceSyncableFromProfile(profile_)->RemoveObserver(this); | 2231 PrefServiceSyncableFromProfile(profile_)->RemoveObserver(this); |
| 2231 | 2232 |
| 2232 pref_change_registrar_.RemoveAll(); | 2233 pref_change_registrar_.RemoveAll(); |
| 2233 } | 2234 } |
| OLD | NEW |