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

Unified Diff: chrome/browser/password_manager/password_store_proxy_mac.h

Issue 2931863002: Rename PasswordStoreProxyMac to PasswordStoreMac. (Closed)
Patch Set: Created 3 years, 6 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_proxy_mac.h
diff --git a/chrome/browser/password_manager/password_store_proxy_mac.h b/chrome/browser/password_manager/password_store_proxy_mac.h
deleted file mode 100644
index 23460eaec914ed546024e7d09212d363b051d8ae..0000000000000000000000000000000000000000
--- a/chrome/browser/password_manager/password_store_proxy_mac.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_
-#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/threading/thread.h"
-#include "components/password_manager/core/browser/keychain_migration_status_mac.h"
-#include "components/password_manager/core/browser/password_store_default.h"
-#include "components/prefs/pref_member.h"
-
-namespace password_manager {
-class LoginDatabase;
-}
-
-// Password store for Mac. It creates a dedicated background thread
-class PasswordStoreProxyMac : public password_manager::PasswordStoreDefault {
- public:
- PasswordStoreProxyMac(
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner,
- std::unique_ptr<password_manager::LoginDatabase> login_db,
- PrefService* prefs);
-
- // PasswordStore:
- bool Init(const syncer::SyncableService::StartSyncFlare& flare,
- PrefService* prefs) override;
- void ShutdownOnUIThread() override;
- scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner()
- override;
-
-#if defined(UNIT_TEST)
- password_manager::LoginDatabase* login_metadata_db() { return login_db(); }
-#endif
-
- private:
- ~PasswordStoreProxyMac() override;
-
- void InitOnBackgroundThread(password_manager::MigrationStatus status);
-
- // Writes status to the prefs.
- void UpdateStatusPref(password_manager::MigrationStatus status);
-
- // Thread that the synchronous methods are run on.
- std::unique_ptr<base::Thread> thread_;
-
- // Current migration status for the profile.
- IntegerPrefMember migration_status_;
-
- DISALLOW_COPY_AND_ASSIGN(PasswordStoreProxyMac);
-};
-
-#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698