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

Side by Side Diff: chrome/browser/sync/sync_setup_wizard.h

Issue 9235040: [Sync] Handle errors during first sync gracefully. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 17 matching lines...) Expand all
28 // Show the screen that confirms everything will be synced. 28 // Show the screen that confirms everything will be synced.
29 SYNC_EVERYTHING, 29 SYNC_EVERYTHING,
30 // Show the screen that lets you configure sync. 30 // Show the screen that lets you configure sync.
31 // There are two tabs: 31 // There are two tabs:
32 // Data Types -- 32 // Data Types --
33 // Choose either "Keep everything synced" or 33 // Choose either "Keep everything synced" or
34 // "Choose which data types to sync", and checkboxes for each data type. 34 // "Choose which data types to sync", and checkboxes for each data type.
35 // Encryption -- 35 // Encryption --
36 // Choose what to encrypt and whether to use a passphrase. 36 // Choose what to encrypt and whether to use a passphrase.
37 CONFIGURE, 37 CONFIGURE,
38 // The state that we enter into if configure failed but we are retrying.
39 // It is upto each platform to implement the screen. In default case
Andrew T Wilson (Slow) 2012/01/27 00:19:03 upto->up to
lipalani1 2012/01/27 02:54:29 Removed. On 2012/01/27 00:19:03, Andrew T Wilson w
40 // we just fall back to a UNRECOVERABLE_ERROR which would fallback
41 // to FATAL_ERROR. TODO(sync): We need to have a seperate screen
42 // for handling this.
43 CONFIGURE_RETRY,
38 // Show the screen that prompts for your passphrase 44 // Show the screen that prompts for your passphrase
39 ENTER_PASSPHRASE, 45 ENTER_PASSPHRASE,
40 // An error has occurred in the backend. The next appropriate step is picked 46 // An error has occurred in the backend. The next appropriate step is picked
41 // based on which error has occurred. 47 // based on which error has occurred.
42 NONFATAL_ERROR, 48 NONFATAL_ERROR,
43 // The panic switch. Something went terribly wrong during setup and we can't 49 // The panic switch. Something went terribly wrong during setup and we can't
44 // recover. 50 // recover.
45 FATAL_ERROR, 51 FATAL_ERROR,
46 // The client can't set up sync at the moment due to a concurrent operation 52 // The client can't set up sync at the moment due to a concurrent operation
47 // to clear cloud data being in progress on the server. 53 // to clear cloud data being in progress on the server.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 89
84 private: 90 private:
85 ProfileSyncService* service_; 91 ProfileSyncService* service_;
86 92
87 SyncSetupFlowContainer* flow_container_; 93 SyncSetupFlowContainer* flow_container_;
88 94
89 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); 95 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard);
90 }; 96 };
91 97
92 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 98 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698