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

Unified Diff: chrome/browser/password_manager/password_store_factory.cc

Issue 1858513002: chrome/browser/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows -- revert unwanted change Created 4 years, 8 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/password_manager/password_store_factory.cc
diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc
index f298ff93e19505a9e63289fb7122b2e3eb2c3f3c..a661c0110ef3734d85efe5942a80b0aea8961db0 100644
--- a/chrome/browser/password_manager/password_store_factory.cc
+++ b/chrome/browser/password_manager/password_store_factory.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/password_manager/password_store_factory.h"
+#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/environment.h"
-#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
#include "base/thread_task_runner_handle.h"
@@ -150,7 +150,7 @@ PasswordStoreFactory::BuildServiceInstanceFor(
#endif
Profile* profile = static_cast<Profile*>(context);
- scoped_ptr<password_manager::LoginDatabase> login_db(
+ std::unique_ptr<password_manager::LoginDatabase> login_db(
password_manager::CreateLoginDatabase(profile->GetPath()));
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner(
@@ -166,7 +166,7 @@ PasswordStoreFactory::BuildServiceInstanceFor(
WebDataServiceFactory::GetPasswordWebDataForProfile(
profile, ServiceAccessType::EXPLICIT_ACCESS));
#elif defined(OS_MACOSX)
- scoped_ptr<crypto::AppleKeychain> keychain(
+ std::unique_ptr<crypto::AppleKeychain> keychain(
base::CommandLine::ForCurrentProcess()->HasSwitch(
os_crypt::switches::kUseMockKeychain)
? new crypto::MockAppleKeychain()
@@ -207,7 +207,7 @@ PasswordStoreFactory::BuildServiceInstanceFor(
PrefService* prefs = profile->GetPrefs();
LocalProfileId id = GetLocalProfileId(prefs);
- scoped_ptr<PasswordStoreX::NativeBackend> backend;
+ std::unique_ptr<PasswordStoreX::NativeBackend> backend;
if (used_desktop_env == base::nix::DESKTOP_ENVIRONMENT_KDE4 ||
used_desktop_env == base::nix::DESKTOP_ENVIRONMENT_KDE5) {
// KDE3 didn't use DBus, which our KWallet store uses.
@@ -294,7 +294,7 @@ bool PasswordStoreFactory::ServiceIsNULLWhileTesting() const {
#if defined(USE_X11)
base::nix::DesktopEnvironment PasswordStoreFactory::GetDesktopEnvironment() {
- scoped_ptr<base::Environment> env(base::Environment::Create());
+ std::unique_ptr<base::Environment> env(base::Environment::Create());
return base::nix::GetDesktopEnvironment(env.get());
}
« no previous file with comments | « chrome/browser/password_manager/password_manager_util_win.cc ('k') | chrome/browser/password_manager/password_store_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698