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

Unified Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc

Issue 16290004: 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: 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
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.cc ('k') | chrome/browser/ui/tabs/tab_audio_indicator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc
diff --git a/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc b/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc
index 8085ddc5a7f26876ed1a10e5326ef71267d95ed2..9ffee127196278691ac62d32507cdc484ae7e139 100644
--- a/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc
+++ b/chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc
@@ -205,23 +205,17 @@ TEST_F(ProfileSigninConfirmationHelperTest, PromptForNewProfile_Extensions) {
extensions->extension_prefs()->AddGrantedPermissions(
webstore->id(),
make_scoped_refptr(new extensions::PermissionSet));
- extensions->AddExtension(webstore);
- EXPECT_FALSE(
- GetCallbackResult(
- base::Bind(
- &ui::CheckShouldPromptForNewProfile,
- profile_.get())));
+ extensions->AddExtension(webstore.get());
+ EXPECT_FALSE(GetCallbackResult(
+ base::Bind(&ui::CheckShouldPromptForNewProfile, profile_.get())));
scoped_refptr<extensions::Extension> extension =
CreateExtension("foo", std::string());
extensions->extension_prefs()->AddGrantedPermissions(
extension->id(), make_scoped_refptr(new extensions::PermissionSet));
- extensions->AddExtension(extension);
- EXPECT_TRUE(
- GetCallbackResult(
- base::Bind(
- &ui::CheckShouldPromptForNewProfile,
- profile_.get())));
+ extensions->AddExtension(extension.get());
+ EXPECT_TRUE(GetCallbackResult(
+ base::Bind(&ui::CheckShouldPromptForNewProfile, profile_.get())));
}
TEST_F(ProfileSigninConfirmationHelperTest, PromptForNewProfile_History) {
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.cc ('k') | chrome/browser/ui/tabs/tab_audio_indicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698