| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_flow.h" | 5 #include "chrome/browser/sync/sync_setup_flow.h" |
| 6 | 6 |
| 7 #include "app/gfx/font_util.h" | 7 #include "app/gfx/font_util.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/histogram.h" | 9 #include "base/histogram.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 ProfileSyncService::SyncEvent( | 292 ProfileSyncService::SyncEvent( |
| 293 ProfileSyncService::CANCEL_FROM_SIGNON_WITHOUT_AUTH); | 293 ProfileSyncService::CANCEL_FROM_SIGNON_WITHOUT_AUTH); |
| 294 break; | 294 break; |
| 295 case SyncSetupWizard::GAIA_SUCCESS: | 295 case SyncSetupWizard::GAIA_SUCCESS: |
| 296 ProfileSyncService::SyncEvent( | 296 ProfileSyncService::SyncEvent( |
| 297 ProfileSyncService::CANCEL_DURING_SIGNON); | 297 ProfileSyncService::CANCEL_DURING_SIGNON); |
| 298 break; | 298 break; |
| 299 case SyncSetupWizard::CHOOSE_DATA_TYPES: | 299 case SyncSetupWizard::CHOOSE_DATA_TYPES: |
| 300 ProfileSyncService::SyncEvent( | 300 ProfileSyncService::SyncEvent( |
| 301 ProfileSyncService::CANCEL_FROM_CHOOSE_DATA_TYPES); | 301 ProfileSyncService::CANCEL_FROM_CHOOSE_DATA_TYPES); |
| 302 break; |
| 302 case SyncSetupWizard::DONE_FIRST_TIME: | 303 case SyncSetupWizard::DONE_FIRST_TIME: |
| 303 case SyncSetupWizard::DONE: | 304 case SyncSetupWizard::DONE: |
| 304 // TODO(sync): rename this histogram; it's tracking authorization AND | 305 // TODO(sync): rename this histogram; it's tracking authorization AND |
| 305 // initial sync download time. | 306 // initial sync download time. |
| 306 UMA_HISTOGRAM_MEDIUM_TIMES("Sync.UserPerceivedAuthorizationTime", | 307 UMA_HISTOGRAM_MEDIUM_TIMES("Sync.UserPerceivedAuthorizationTime", |
| 307 base::TimeTicks::Now() - login_start_time_); | 308 base::TimeTicks::Now() - login_start_time_); |
| 308 break; | 309 break; |
| 309 default: | 310 default: |
| 310 break; | 311 break; |
| 311 } | 312 } |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 Browser* b = BrowserList::GetLastActive(); | 484 Browser* b = BrowserList::GetLastActive(); |
| 484 if (b) { | 485 if (b) { |
| 485 b->BrowserShowHtmlDialog(flow, NULL); | 486 b->BrowserShowHtmlDialog(flow, NULL); |
| 486 } else { | 487 } else { |
| 487 delete flow; | 488 delete flow; |
| 488 return NULL; | 489 return NULL; |
| 489 } | 490 } |
| 490 #endif // defined(OS_MACOSX) | 491 #endif // defined(OS_MACOSX) |
| 491 return flow; | 492 return flow; |
| 492 } | 493 } |
| OLD | NEW |