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( |