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

Unified Diff: components/autofill/core/browser/webdata/autofill_profile_syncable_service.h

Issue 129463002: Move AutofillProfileSyncableService into the Autofill component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Propagate define Created 6 years, 11 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/webdata/autofill_profile_syncable_service.h
diff --git a/chrome/browser/webdata/autofill_profile_syncable_service.h b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
similarity index 94%
rename from chrome/browser/webdata/autofill_profile_syncable_service.h
rename to components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
index 77f9b52c6e1a7ebb4b39724e2f4a0f39cc65978b..2cb62737356beffe8bd721d0839353824e3490f6 100644
--- a/chrome/browser/webdata/autofill_profile_syncable_service.h
+++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
@@ -1,8 +1,12 @@
// Copyright (c) 2012 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_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
-#define CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
+
+#if !defined(AUTOFILL_ENABLE_SYNC)
+#error "This file should be built only when sync is enabled in Autofill"
+#endif
#include <map>
#include <string>
@@ -50,7 +54,8 @@ class AutofillProfileSyncableService
virtual ~AutofillProfileSyncableService();
// Creates a new AutofillProfileSyncableService and hangs it off of
- // |web_data_service|, which takes ownership.
+ // |web_data_service|, which takes ownership. This method should only be
+ // called on |web_data_service|'s DB thread.
static void CreateForWebDataServiceAndBackend(
AutofillWebDataService* web_data_service,
AutofillWebDataBackend* webdata_backend,
@@ -215,4 +220,4 @@ struct AutofillProfileSyncableService::DataBundle {
} // namespace autofill
-#endif // CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698