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

Side by Side Diff: chrome/browser/sync/syncable/autofill_migration.h

Issue 5159001: Rest of the autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch uploaded to debug why try servers have problem applying this patch. Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_AUTOFILL_MIGRATION_H_
6 #define CHROME_BROWSER_SYNC_SYNCABLE_AUTOFILL_MIGRATION_H_
7 #pragma once
8
9 namespace syncable {
10 enum AutofillMigrationState {
11
12 // Indicates the default state. After first run the state would change to
13 // one of the following.
14 NOT_DETERMINED,
15
16 // The autofill profile is not migrated. Current sync should migrate the data
17 // by syncing down the old autofill and syncing profiles back up to the server
18 // as new autofill.
19 NOT_MIGRATED,
20
21 // We have migrated the autofill profile data. From now on autofill and
22 // autofill profiles are 2 seperate data types.
23 MIGRATED,
24
25 // The autofill datatype is being synced new.(either because this is a new
26 // client or the user just enabled them for syncing). In which case if
27 // someother client had migrated the data already then our new state after
28 // first sync would be MIGRATED. Else we would be responsible for migrating
29 // the data.
30 INSUFFICIENT_INFO_TO_DETERMINE
31 };
32
33 struct AutofillMigrationDebugInfo {
34 enum PropertyToSet {
35 MIGRATION_TIME,
36 BOOKMARK_ADDED,
37 ENTRIES_ADDED,
38 PROFILES_ADDED
39 };
40 int64 autofill_migration_time;
41 int bookmarks_added_during_migration;
42 int autofill_entries_added_during_migration;
43 int autofill_profile_added_during_migration;
44 };
45
46 } // namespace syncable
47
48 #endif // CHROME_BROWSER_SYNC_SYNCABLE_AUTOFILL_MIGRATION_H_
49
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698