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

Unified Diff: components/autofill/core/browser/options_util.h

Issue 1137513002: Autofill: Add WalletIntegrationAvailable() to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Change pointer params to const ref. Add newline. Created 5 years, 7 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/autofill/core/browser/options_util.h
diff --git a/components/autofill/core/browser/options_util.h b/components/autofill/core/browser/options_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..63d38b36e61ec1ab68f5aca763dca121054f35b9
--- /dev/null
+++ b/components/autofill/core/browser/options_util.h
@@ -0,0 +1,27 @@
+// 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 COMPONENTS_AUTOFILL_CORE_BROWSER_OPTIONS_UTIL_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_OPTIONS_UTIL_H_
+
+class PrefService;
+
+namespace sync_driver {
+class SyncService;
+}
+
+namespace autofill {
+
+class PersonalDataManager;
+
+// Decides whether the Autofill Wallet integration is available (i.e. can be
+// enabled or disabled by the user).
+bool WalletIntegrationAvailable(
+ sync_driver::SyncService* sync_service,
+ const PrefService& pref_service,
+ const PersonalDataManager& personal_data_manager);
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_OPTIONS_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698