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

Unified Diff: chrome/browser/background_application_list_model.cc

Issue 7068025: Revert 86724 - Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/background_application_list_model.h ('k') | chrome/browser/background_mode_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background_application_list_model.cc
===================================================================
--- chrome/browser/background_application_list_model.cc (revision 86725)
+++ chrome/browser/background_application_list_model.cc (working copy)
@@ -96,12 +96,11 @@
void
BackgroundApplicationListModel::Observer::OnApplicationDataChanged(
- const Extension* extension, Profile* profile) {
+ const Extension* extension) {
}
void
-BackgroundApplicationListModel::Observer::OnApplicationListChanged(
- Profile* profile) {
+BackgroundApplicationListModel::Observer::OnApplicationListChanged() {
}
BackgroundApplicationListModel::Observer::~Observer() {
@@ -126,7 +125,7 @@
if (!image)
return;
icon_.reset(new SkBitmap(*image));
- model_->SendApplicationDataChangedNotifications(extension_);
+ model_->OnApplicationDataChanged(extension_);
}
void BackgroundApplicationListModel::Application::RequestIcon(
@@ -264,10 +263,9 @@
}
}
-void BackgroundApplicationListModel::SendApplicationDataChangedNotifications(
+void BackgroundApplicationListModel::OnApplicationDataChanged(
const Extension* extension) {
- FOR_EACH_OBSERVER(Observer, observers_, OnApplicationDataChanged(extension,
- profile_));
+ FOR_EACH_OBSERVER(Observer, observers_, OnApplicationDataChanged(extension));
}
void BackgroundApplicationListModel::OnExtensionLoaded(Extension* extension) {
@@ -312,6 +310,6 @@
}
if (old_cursor != extensions_.end() || new_cursor != extensions.end()) {
extensions_ = extensions;
- FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged(profile_));
+ FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged());
}
}
« no previous file with comments | « chrome/browser/background_application_list_model.h ('k') | chrome/browser/background_mode_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698