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

Unified Diff: chrome/browser/extensions/api/runtime/runtime_api.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
Index: chrome/browser/extensions/api/runtime/runtime_api.cc
diff --git a/chrome/browser/extensions/api/runtime/runtime_api.cc b/chrome/browser/extensions/api/runtime/runtime_api.cc
index 4629804e7e1e9d1de123c99bb687ab1be7ee8d0e..fc23bee9dcccfa0b94b65bb77d81d90b2761a86c 100644
--- a/chrome/browser/extensions/api/runtime/runtime_api.cc
+++ b/chrome/browser/extensions/api/runtime/runtime_api.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/extensions/updater/extension_updater.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension.h"
#include "googleurl/src/gurl.h"
@@ -58,7 +59,8 @@ static void DispatchOnStartupEventImpl(
// If it fails to load the first time, don't bother trying again.
const Extension* extension =
system->extension_service()->extensions()->GetByID(extension_id);
- if (extension && extension->has_persistent_background_page() && first_call &&
+ if (extension && BackgroundInfo::HasPersistentBackgroundPage(extension) &&
+ first_call &&
system->lazy_background_task_queue()->
ShouldEnqueueTask(profile, extension)) {
system->lazy_background_task_queue()->AddPendingTask(

Powered by Google App Engine
This is Rietveld 408576698