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

Unified Diff: chrome/browser/extensions/api/content_settings/content_settings_api.cc

Issue 501263002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/extensions/api/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just in case Created 6 years, 4 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/content_settings/content_settings_api.cc
diff --git a/chrome/browser/extensions/api/content_settings/content_settings_api.cc b/chrome/browser/extensions/api/content_settings/content_settings_api.cc
index 99f7fc0be134af984eb1423388679a2ea7a3ce2d..ad5904520f250d96cb35f3db887186a932ddd7d0 100644
--- a/chrome/browser/extensions/api/content_settings/content_settings_api.cc
+++ b/chrome/browser/extensions/api/content_settings/content_settings_api.cc
@@ -87,7 +87,7 @@ bool ContentSettingsContentSettingClearFunction::RunSync() {
}
}
- ContentSettingsStore* store =
+ scoped_refptr<ContentSettingsStore> store =
dcheng 2014/08/26 00:50:20 Note: this variable type was rewritten instead of
Jeffrey Yasskin 2014/08/26 01:14:16 The change that introduced the scoped_refptr retur
ContentSettingsService::Get(GetProfile())->content_settings_store();
store->ClearContentSettingsForExtension(extension_id(), scope);
@@ -238,7 +238,7 @@ bool ContentSettingsContentSettingSetFunction::RunSync() {
return false;
}
- ContentSettingsStore* store =
+ scoped_refptr<ContentSettingsStore> store =
dcheng 2014/08/26 00:50:20 Note: this variable type was rewritten instead of
ContentSettingsService::Get(GetProfile())->content_settings_store();
store->SetExtensionContentSetting(extension_id(), primary_pattern,
secondary_pattern, content_type,

Powered by Google App Engine
This is Rietveld 408576698