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

Unified Diff: chrome/browser/content_settings/content_settings_pref_provider_unittest.cc

Issue 23068005: Convert UserPolicySigninService to use OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 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/content_settings/content_settings_pref_provider_unittest.cc
diff --git a/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc b/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
index b1c8a62df8e24f7ec9d6565eca1c578a677f733b..3646541411cc2d3a9532fa3b078a657be1f00964 100644
--- a/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
+++ b/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
@@ -154,11 +154,10 @@ TEST_F(PrefProviderTest, Incognito) {
scoped_ptr<TestingProfile> profile = profile_builder.Build();
TestingProfile::Builder otr_profile_builder;
+ otr_profile_builder.SetIncognito();
otr_profile_builder.SetPrefService(make_scoped_ptr(otr_prefs));
- TestingProfile* otr_profile = otr_profile_builder.Build().release();
-
- otr_profile->set_incognito(true);
- profile->SetOffTheRecordProfile(otr_profile);
+ scoped_ptr<TestingProfile> otr_profile(otr_profile_builder.Build());
+ profile->SetOffTheRecordProfile(otr_profile.PassAs<Profile>());
PrefProvider pref_content_settings_provider(regular_prefs, false);
PrefProvider pref_content_settings_provider_incognito(otr_prefs, true);

Powered by Google App Engine
This is Rietveld 408576698