Index: components/password_manager/core/browser/password_store.h |
diff --git a/components/password_manager/core/browser/password_store.h b/components/password_manager/core/browser/password_store.h |
index dd34afc9bc94e4b4bec0294c74d500f5bb61394d..0a0b915bbeff297767ce2c2b2f24dc5d56aa8f38 100644 |
--- a/components/password_manager/core/browser/password_store.h |
+++ b/components/password_manager/core/browser/password_store.h |
@@ -17,12 +17,16 @@ |
#include "base/single_thread_task_runner.h" |
#include "base/time/time.h" |
#include "components/keyed_service/core/refcounted_keyed_service.h" |
-#include "components/password_manager/core/browser/password_reuse_detector.h" |
-#include "components/password_manager/core/browser/password_reuse_detector_consumer.h" |
#include "components/password_manager/core/browser/password_store_change.h" |
#include "components/password_manager/core/browser/password_store_sync.h" |
#include "components/sync/model/syncable_service.h" |
+// TODO(crbug.com/706392): Fix password reuse detection for Android. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
+#include "components/password_manager/core/browser/password_reuse_detector.h" |
+#include "components/password_manager/core/browser/password_reuse_detector_consumer.h" |
+#endif |
+ |
class PasswordStoreProxyMac; |
namespace autofill { |
@@ -227,6 +231,8 @@ class PasswordStore : protected PasswordStoreSync, |
base::WeakPtr<syncer::SyncableService> GetPasswordSyncableService(); |
+// TODO(crbug.com/706392): Fix password reuse detection for Android. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
// Checks that some suffix of |input| equals to a password saved on another |
// registry controlled domain than |domain|. |
// If such suffix is found, |consumer|->OnReuseFound() is called on the same |
@@ -235,6 +241,7 @@ class PasswordStore : protected PasswordStoreSync, |
virtual void CheckReuse(const base::string16& input, |
const std::string& domain, |
PasswordReuseDetectorConsumer* consumer); |
+#endif |
protected: |
friend class base::RefCountedThreadSafe<PasswordStore>; |
@@ -271,6 +278,8 @@ class PasswordStore : protected PasswordStoreSync, |
DISALLOW_COPY_AND_ASSIGN(GetLoginsRequest); |
}; |
+// TODO(crbug.com/706392): Fix password reuse detection for Android. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
// Represents a single CheckReuse() request. Implements functionality to |
// listen to reuse events and propagate them to |consumer| on the thread on |
// which CheckReuseRequest is created. |
@@ -292,6 +301,7 @@ class PasswordStore : protected PasswordStoreSync, |
DISALLOW_COPY_AND_ASSIGN(CheckReuseRequest); |
}; |
+#endif |
~PasswordStore() override; |
@@ -386,10 +396,13 @@ class PasswordStore : protected PasswordStoreSync, |
// may have been changed. |
void NotifyLoginsChanged(const PasswordStoreChangeList& changes) override; |
+// TODO(crbug.com/706392): Fix password reuse detection for Android. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
// Synchronous implementation of CheckReuse(). |
void CheckReuseImpl(std::unique_ptr<CheckReuseRequest> request, |
const base::string16& input, |
const std::string& domain); |
+#endif |
// TaskRunner for tasks that run on the main thread (usually the UI thread). |
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner_; |
@@ -541,7 +554,10 @@ class PasswordStore : protected PasswordStoreSync, |
std::unique_ptr<PasswordSyncableService> syncable_service_; |
std::unique_ptr<AffiliatedMatchHelper> affiliated_match_helper_; |
+// TODO(crbug.com/706392): Fix password reuse detection for Android. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
std::unique_ptr<PasswordReuseDetector> reuse_detector_; |
+#endif |
bool is_propagating_password_changes_to_web_credentials_enabled_; |
bool shutdown_called_; |