| 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/extensions/install_tracker.h" | 5 #include "chrome/browser/extensions/install_tracker.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/extensions/install_tracker_factory.h" | 9 #include "chrome/browser/extensions/install_tracker_factory.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const Extension* extension, | 138 const Extension* extension, |
| 139 UnloadedExtensionInfo::Reason reason) { | 139 UnloadedExtensionInfo::Reason reason) { |
| 140 FOR_EACH_OBSERVER( | 140 FOR_EACH_OBSERVER( |
| 141 InstallObserver, observers_, OnExtensionUnloaded(extension)); | 141 InstallObserver, observers_, OnExtensionUnloaded(extension)); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void InstallTracker::OnExtensionWillBeInstalled( | 144 void InstallTracker::OnExtensionWillBeInstalled( |
| 145 content::BrowserContext* browser_context, | 145 content::BrowserContext* browser_context, |
| 146 const Extension* extension, | 146 const Extension* extension, |
| 147 bool is_update, | 147 bool is_update, |
| 148 bool from_ephemeral, |
| 148 const std::string& old_name) { | 149 const std::string& old_name) { |
| 149 FOR_EACH_OBSERVER( | 150 FOR_EACH_OBSERVER( |
| 150 InstallObserver, observers_, OnExtensionInstalled(extension)); | 151 InstallObserver, observers_, OnExtensionInstalled(extension)); |
| 151 } | 152 } |
| 152 | 153 |
| 153 void InstallTracker::OnAppsReordered() { | 154 void InstallTracker::OnAppsReordered() { |
| 154 FOR_EACH_OBSERVER(InstallObserver, observers_, OnAppsReordered()); | 155 FOR_EACH_OBSERVER(InstallObserver, observers_, OnAppsReordered()); |
| 155 } | 156 } |
| 156 | 157 |
| 157 } // namespace extensions | 158 } // namespace extensions |
| OLD | NEW |