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

Unified Diff: extensions/browser/api/web_request/web_request_api_helpers.cc

Issue 646983008: Implement signin using webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: 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();

Powered by Google App Engine
This is Rietveld 408576698