| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/views/profiles/profile_chooser_view.h" | 5 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/lifetime/application_lifetime.h" | 11 #include "chrome/browser/lifetime/application_lifetime.h" |
| 11 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 12 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 12 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 13 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 13 #include "chrome/browser/profiles/profile_info_cache.h" | 14 #include "chrome/browser/profiles/profile_info_cache.h" |
| 14 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
| 15 #include "chrome/browser/profiles/profile_metrics.h" | 16 #include "chrome/browser/profiles/profile_metrics.h" |
| 16 #include "chrome/browser/profiles/profile_window.h" | 17 #include "chrome/browser/profiles/profile_window.h" |
| (...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1867 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != | 1868 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != |
| 1868 IncognitoModePrefs::DISABLED; | 1869 IncognitoModePrefs::DISABLED; |
| 1869 return incognito_available && !browser_->profile()->IsGuestSession(); | 1870 return incognito_available && !browser_->profile()->IsGuestSession(); |
| 1870 } | 1871 } |
| 1871 | 1872 |
| 1872 void ProfileChooserView::PostActionPerformed( | 1873 void ProfileChooserView::PostActionPerformed( |
| 1873 ProfileMetrics::ProfileDesktopMenu action_performed) { | 1874 ProfileMetrics::ProfileDesktopMenu action_performed) { |
| 1874 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); | 1875 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); |
| 1875 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; | 1876 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; |
| 1876 } | 1877 } |
| OLD | NEW |