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

Unified Diff: components/password_manager/core/browser/password_generation_manager_unittest.cc

Issue 655143002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: components/password_manager/core/browser/password_generation_manager_unittest.cc
diff --git a/components/password_manager/core/browser/password_generation_manager_unittest.cc b/components/password_manager/core/browser/password_generation_manager_unittest.cc
index f60a5ad785eac0e7370318740e92288bd78db990..6872f82b55a3fc5479dc074ca42c997d77800ee3 100644
--- a/components/password_manager/core/browser/password_generation_manager_unittest.cc
+++ b/components/password_manager/core/browser/password_generation_manager_unittest.cc
@@ -111,7 +111,7 @@ class PasswordGenerationManagerTest : public testing::Test {
scoped_ptr<TestingPrefServiceSimple> prefs(new TestingPrefServiceSimple());
prefs->registry()->RegisterBooleanPref(prefs::kPasswordManagerSavingEnabled,
true);
- client_.reset(new TestPasswordManagerClient(prefs.PassAs<PrefService>()));
+ client_.reset(new TestPasswordManagerClient(prefs.Pass()));
}
virtual void TearDown() override { client_.reset(); }

Powered by Google App Engine
This is Rietveld 408576698