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

Unified Diff: chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc

Issue 15836003: 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/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
diff --git a/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc b/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
index f2c3a918fc2929788b1eee73a71d2c4d18b65a5b..5b611f732375293a9e91f6929899c8655582158c 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
@@ -49,8 +49,8 @@ TEST_F(ContentScriptsManifestTest, OnChromeUrlsWithFlag) {
scoped_refptr<Extension> extension =
LoadAndExpectSuccess("content_script_chrome_url_invalid.json");
const GURL newtab_url("chrome://newtab/");
- EXPECT_TRUE(ContentScriptsInfo::ExtensionHasScriptAtURL(extension,
- newtab_url));
+ EXPECT_TRUE(
+ ContentScriptsInfo::ExtensionHasScriptAtURL(extension.get(), newtab_url));
}
TEST_F(ContentScriptsManifestTest, ScriptableHosts) {
@@ -58,7 +58,7 @@ TEST_F(ContentScriptsManifestTest, ScriptableHosts) {
scoped_refptr<Extension> extension =
LoadAndExpectSuccess("content_script_yahoo.json");
URLPatternSet scriptable_hosts =
- ContentScriptsInfo::GetScriptableHosts(extension);
+ ContentScriptsInfo::GetScriptableHosts(extension.get());
URLPatternSet expected;
expected.AddPattern(

Powered by Google App Engine
This is Rietveld 408576698