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

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

Issue 10804020: Introduce runtime.onSuspendCanceled() event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos call Created 8 years, 5 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 64106fec0ec8f93e181a301da90ca6fd4d656f81..7ba98d6a75b8c170fec93cc82dd7d6e8f83d9118 100644
--- a/chrome/browser/extensions/api/runtime/runtime_api.cc
+++ b/chrome/browser/extensions/api/runtime/runtime_api.cc
@@ -41,21 +41,11 @@ void RuntimeEventRouter::DispatchOnInstalledEvent(
}
bool RuntimeGetBackgroundPageFunction::RunImpl() {
- ExtensionHost* host =
- ExtensionSystem::Get(profile())->process_manager()->
- GetBackgroundHostForExtension(extension_id());
- if (host) {
- OnPageLoaded(host);
- } else if (GetExtension()->has_lazy_background_page()) {
- ExtensionSystem::Get(profile())->lazy_background_task_queue()->
- AddPendingTask(
- profile(), extension_id(),
- base::Bind(&RuntimeGetBackgroundPageFunction::OnPageLoaded,
- this));
- } else {
- error_ = kNoBackgroundPageError;
Matt Perry 2012/07/24 19:25:15 We lost this error in the transition. Could you ad
- return false;
- }
+ ExtensionSystem::Get(profile())->lazy_background_task_queue()->
+ AddPendingTask(
+ profile(), extension_id(),
+ base::Bind(&RuntimeGetBackgroundPageFunction::OnPageLoaded,
+ this));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698