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 544e064ac42b18472f5194d805a70753b8a680f2..bcffb0f483df8276e3b3a2002a184ad8dcb6d48a 100644 |
--- a/chrome/browser/extensions/api/runtime/runtime_api.cc |
+++ b/chrome/browser/extensions/api/runtime/runtime_api.cc |
@@ -56,8 +56,9 @@ bool RuntimeGetBackgroundPageFunction::RunImpl() { |
return true; |
} |
-void RuntimeGetBackgroundPageFunction::OnPageLoaded(ExtensionHost*) { |
- SendResponse(true); |
+void RuntimeGetBackgroundPageFunction::OnPageLoaded(ExtensionHost* host) { |
+ if (host) |
Yoyo Zhou
2012/04/13 20:43:52
If not, it looks like the async function will neve
Matt Perry
2012/04/13 21:19:09
Good catch, fixed!
|
+ SendResponse(true); |
} |
} // namespace extensions |