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

Unified Diff: chrome/browser/background_application_list_model.cc

Issue 6914021: Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://chrome-svn/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 86624)
+++ chrome/browser/background_application_list_model.cc (working copy)
@@ -96,11 +96,12 @@
void
BackgroundApplicationListModel::Observer::OnApplicationDataChanged(
- const Extension* extension) {
+ const Extension* extension, Profile* profile) {
}
void
-BackgroundApplicationListModel::Observer::OnApplicationListChanged() {
+BackgroundApplicationListModel::Observer::OnApplicationListChanged(
+ Profile* profile) {
}
BackgroundApplicationListModel::Observer::~Observer() {
@@ -125,7 +126,7 @@
if (!image)
return;
icon_.reset(new SkBitmap(*image));
- model_->OnApplicationDataChanged(extension_);
+ model_->SendApplicationDataChangedNotifications(extension_);
}
void BackgroundApplicationListModel::Application::RequestIcon(
@@ -263,9 +264,10 @@
}
}
-void BackgroundApplicationListModel::OnApplicationDataChanged(
+void BackgroundApplicationListModel::SendApplicationDataChangedNotifications(
const Extension* extension) {
- FOR_EACH_OBSERVER(Observer, observers_, OnApplicationDataChanged(extension));
+ FOR_EACH_OBSERVER(Observer, observers_, OnApplicationDataChanged(extension,
+ profile_));
}
void BackgroundApplicationListModel::OnExtensionLoaded(Extension* extension) {
@@ -310,6 +312,6 @@
}
if (old_cursor != extensions_.end() || new_cursor != extensions.end()) {
extensions_ = extensions;
- FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged());
+ FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged(profile_));
}
}
« 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