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/macros.h" |
8 #include "base/metrics/user_metrics.h" | 8 #include "base/metrics/user_metrics.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
39 #include "chrome/grit/chromium_strings.h" | 39 #include "chrome/grit/chromium_strings.h" |
40 #include "chrome/grit/generated_resources.h" | 40 #include "chrome/grit/generated_resources.h" |
41 #include "components/browser_sync/browser/profile_sync_service.h" | 41 #include "components/browser_sync/browser/profile_sync_service.h" |
42 #include "components/prefs/pref_service.h" | 42 #include "components/prefs/pref_service.h" |
43 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 43 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
44 #include "components/signin/core/browser/signin_error_controller.h" | 44 #include "components/signin/core/browser/signin_error_controller.h" |
45 #include "components/signin/core/browser/signin_header_helper.h" | 45 #include "components/signin/core/browser/signin_header_helper.h" |
46 #include "components/signin/core/browser/signin_manager.h" | 46 #include "components/signin/core/browser/signin_manager.h" |
47 #include "components/signin/core/common/profile_management_switches.h" | 47 #include "components/signin/core/common/profile_management_switches.h" |
48 #include "components/sync_driver/sync_error_controller.h" | 48 #include "components/sync/driver/sync_error_controller.h" |
49 #include "content/public/browser/render_widget_host_view.h" | 49 #include "content/public/browser/render_widget_host_view.h" |
50 #include "content/public/browser/user_metrics.h" | 50 #include "content/public/browser/user_metrics.h" |
51 #include "grit/theme_resources.h" | 51 #include "grit/theme_resources.h" |
52 #include "third_party/skia/include/core/SkColor.h" | 52 #include "third_party/skia/include/core/SkColor.h" |
53 #include "ui/base/l10n/l10n_util.h" | 53 #include "ui/base/l10n/l10n_util.h" |
54 #include "ui/base/material_design/material_design_controller.h" | 54 #include "ui/base/material_design/material_design_controller.h" |
55 #include "ui/base/resource/resource_bundle.h" | 55 #include "ui/base/resource/resource_bundle.h" |
56 #include "ui/compositor/clip_recorder.h" | 56 #include "ui/compositor/clip_recorder.h" |
57 #include "ui/compositor/paint_recorder.h" | 57 #include "ui/compositor/paint_recorder.h" |
58 #include "ui/gfx/canvas.h" | 58 #include "ui/gfx/canvas.h" |
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != | 2298 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != |
2299 IncognitoModePrefs::DISABLED; | 2299 IncognitoModePrefs::DISABLED; |
2300 return incognito_available && !browser_->profile()->IsGuestSession(); | 2300 return incognito_available && !browser_->profile()->IsGuestSession(); |
2301 } | 2301 } |
2302 | 2302 |
2303 void ProfileChooserView::PostActionPerformed( | 2303 void ProfileChooserView::PostActionPerformed( |
2304 ProfileMetrics::ProfileDesktopMenu action_performed) { | 2304 ProfileMetrics::ProfileDesktopMenu action_performed) { |
2305 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); | 2305 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); |
2306 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; | 2306 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; |
2307 } | 2307 } |
OLD | NEW |