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

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

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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/web_request/web_request_api_helpers.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc b/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
index 3c7b446dc408b3438d59628533355272a1bb3aa8..902112ecd59c8eaf4120e87858b44a0ebf1d5435 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
@@ -1263,9 +1263,9 @@ void NotifyWebRequestAPIUsed(
if (!g_browser_process->profile_manager()->IsValidProfile(profile))
return;
- if (profile->GetExtensionService()->HasUsedWebRequest(extension))
+ if (profile->GetExtensionService()->HasUsedWebRequest(extension.get()))
return;
- profile->GetExtensionService()->SetHasUsedWebRequest(extension, true);
+ profile->GetExtensionService()->SetHasUsedWebRequest(extension.get(), true);
content::BrowserContext* browser_context = profile;
for (content::RenderProcessHost::iterator it =

Powered by Google App Engine
This is Rietveld 408576698