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

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

Issue 3792007: Fix some problems with the ENTER_PASSPHRASE state in sync setup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/sync/sync_setup_wizard.h" 5 #include "chrome/browser/sync/sync_setup_wizard.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "chrome/browser/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 void SyncSetupWizard::SetParent(gfx::NativeWindow parent_window) { 272 void SyncSetupWizard::SetParent(gfx::NativeWindow parent_window) {
273 parent_window_ = parent_window; 273 parent_window_ = parent_window;
274 } 274 }
275 275
276 // static 276 // static
277 SyncSetupWizard::State SyncSetupWizard::GetEndStateForDiscreteRun( 277 SyncSetupWizard::State SyncSetupWizard::GetEndStateForDiscreteRun(
278 State start_state) { 278 State start_state) {
279 State result = FATAL_ERROR; 279 State result = FATAL_ERROR;
280 if (start_state == GAIA_LOGIN) { 280 if (start_state == GAIA_LOGIN) {
281 result = GAIA_SUCCESS; 281 result = GAIA_SUCCESS;
282 } else if (start_state == ENTER_PASSPHRASE) {
283 result = DONE;
282 } else if (start_state == CONFIGURE) { 284 } else if (start_state == CONFIGURE) {
283 result = DONE; 285 result = DONE;
284 } 286 }
285 DCHECK_NE(FATAL_ERROR, result) << 287 DCHECK_NE(FATAL_ERROR, result) <<
286 "Invalid start state for discrete run: " << start_state; 288 "Invalid start state for discrete run: " << start_state;
287 return result; 289 return result;
288 } 290 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_setup_flow.cc ('k') | chrome/browser/sync/sync_setup_wizard_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698