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; |
} |