OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/profiles/profile_window.h" | 5 #include "chrome/browser/profiles/profile_window.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 return; | 502 return; |
503 case BrowserWindow::AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN: | 503 case BrowserWindow::AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN: |
504 *bubble_view_mode = BUBBLE_VIEW_MODE_PROFILE_CHOOSER; | 504 *bubble_view_mode = BUBBLE_VIEW_MODE_PROFILE_CHOOSER; |
505 *tutorial_mode = TUTORIAL_MODE_CONFIRM_SIGNIN; | 505 *tutorial_mode = TUTORIAL_MODE_CONFIRM_SIGNIN; |
506 return; | 506 return; |
507 case BrowserWindow::AVATAR_BUBBLE_MODE_SHOW_ERROR: | 507 case BrowserWindow::AVATAR_BUBBLE_MODE_SHOW_ERROR: |
508 *bubble_view_mode = BUBBLE_VIEW_MODE_PROFILE_CHOOSER; | 508 *bubble_view_mode = BUBBLE_VIEW_MODE_PROFILE_CHOOSER; |
509 *tutorial_mode = TUTORIAL_MODE_SHOW_ERROR; | 509 *tutorial_mode = TUTORIAL_MODE_SHOW_ERROR; |
510 return; | 510 return; |
511 case BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH: | 511 case BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH: |
512 if (switches::IsFastUserSwitching()) | 512 *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER; |
513 *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER; | |
514 else | |
515 *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER; | |
516 return; | 513 return; |
517 default: | 514 default: |
518 *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER; | 515 *bubble_view_mode = profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER; |
519 } | 516 } |
520 } | 517 } |
521 | 518 |
522 } // namespace profiles | 519 } // namespace profiles |
OLD | NEW |