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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_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/developer_private/developer_private_api.cc
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.cc b/chrome/browser/extensions/api/developer_private/developer_private_api.cc
index 8f48d4298648ce55fccb1eaa3fca55eb3cfda160..3d71e1912b0da2bcbb774b4c0e36c5ad053675c5 100644
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.cc
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.cc
@@ -28,6 +28,7 @@
#include "chrome/browser/view_type_utils.h"
#include "chrome/common/extensions/api/developer_private.h"
#include "chrome/common/extensions/api/icons/icons_handler.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension_icon_set.h"
#include "chrome/common/extensions/extension_resource.h"
#include "chrome/common/extensions/manifest_url_handler.h"
@@ -302,10 +303,11 @@ ItemInspectViewList DeveloperPrivateGetItemsInfoFunction::
GetShellWindowPagesForExtensionProfile(extension, &result);
// Include a link to start the lazy background page, if applicable.
- if (extension->has_lazy_background_page() && extension_is_enabled &&
+ if (BackgroundInfo::HasLazyBackgroundPage(extension) &&
+ extension_is_enabled &&
!process_manager->GetBackgroundHostForExtension(extension->id())) {
- result.push_back(
- constructInspectView(extension->GetBackgroundURL(), -1, -1, false));
+ result.push_back(constructInspectView(
+ BackgroundInfo::GetBackgroundURL(extension), -1, -1, false));
}
ExtensionService* service = profile()->GetExtensionService();
@@ -319,10 +321,11 @@ ItemInspectViewList DeveloperPrivateGetItemsInfoFunction::
process_manager->GetRenderViewHostsForExtension(extension->id()),
&result);
- if (extension->has_lazy_background_page() && extension_is_enabled &&
+ if (BackgroundInfo::HasLazyBackgroundPage(extension) &&
+ extension_is_enabled &&
!process_manager->GetBackgroundHostForExtension(extension->id())) {
- result.push_back(
- constructInspectView(extension->GetBackgroundURL(), -1, -1, false));
+ result.push_back(constructInspectView(
+ BackgroundInfo::GetBackgroundURL(extension), -1, -1, false));
}
}

Powered by Google App Engine
This is Rietveld 408576698