Index: extensions/browser/api/web_request/web_request_api_helpers.cc |
diff --git a/extensions/browser/api/web_request/web_request_api_helpers.cc b/extensions/browser/api/web_request/web_request_api_helpers.cc |
index 680a9532eef0864765dc3e0efae169d5a5aa9446..f96e8ec0fc76fd8d332f82d0ccbbcf6b7a4da0ba 100644 |
--- a/extensions/browser/api/web_request/web_request_api_helpers.cc |
+++ b/extensions/browser/api/web_request/web_request_api_helpers.cc |
@@ -1206,9 +1206,11 @@ void NotifyWebRequestAPIUsed( |
extensions::RuntimeData* runtime_data = |
extensions::ExtensionSystem::Get(browser_context)->runtime_data(); |
- if (runtime_data->HasUsedWebRequest(extension.get())) |
- return; |
- runtime_data->SetHasUsedWebRequest(extension.get(), true); |
+ if (extension) { |
+ if (runtime_data->HasUsedWebRequest(extension.get())) |
+ return; |
+ runtime_data->SetHasUsedWebRequest(extension.get(), true); |
Fady Samuel
2014/10/21 21:32:57
What's going on here? I'm confused.
guohui
2014/10/22 15:35:33
lets continue discussion in the other cl https://c
|
+ } |
for (content::RenderProcessHost::iterator it = |
content::RenderProcessHost::AllHostsIterator(); |