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

Unified Diff: chrome/browser/background/background_application_list_model.h

Issue 10298002: No longer start BG mode until a BackgroundContents is loaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prospective fix for cros test failures. Created 8 years, 8 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 | « no previous file | chrome/browser/background/background_application_list_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_application_list_model.h
diff --git a/chrome/browser/background/background_application_list_model.h b/chrome/browser/background/background_application_list_model.h
index 8e7b798ca97095b221a29cb6f5b25dce33eca377..8722bc8a38512189ae6f1618c45c514ea26b2335 100644
--- a/chrome/browser/background/background_application_list_model.h
+++ b/chrome/browser/background/background_application_list_model.h
@@ -17,8 +17,9 @@
class Profile;
-// Model for list of Background Applications, that is, Extensions with
-// kBackgroundPermission set, associated with a Profile.
+// Model for list of Background Applications associated with a Profile (i.e.
+// extensions with kBackgroundPermission set, or hosted apps with a
+// BackgroundContents).
class BackgroundApplicationListModel : public content::NotificationObserver {
public:
// Observer is informed of changes to the model. Users of the
@@ -66,7 +67,8 @@ class BackgroundApplicationListModel : public content::NotificationObserver {
const Extension* GetExtension(int position) const;
// Returns true if the passed extension is a background app.
- static bool IsBackgroundApp(const Extension& extension);
+ static bool IsBackgroundApp(const Extension& extension,
+ Profile* profile);
// Dissociate observer from this model.
void RemoveObserver(Observer* observer);
« no previous file with comments | « no previous file | chrome/browser/background/background_application_list_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698