Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/browser/extensions/install_tracker.cc

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/install_tracker.h ('k') | chrome/browser/extensions/webstore_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698