OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/signin/chrome_signin_status_metrics_provider_delegate.h
" | 5 #include "chrome/browser/signin/chrome_signin_status_metrics_provider_delegate.h
" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/profiles/profile_info_cache.h" | 13 #include "chrome/browser/profiles/profile_info_cache.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 14 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
16 #include "components/signin/core/browser/signin_manager.h" | 17 #include "components/signin/core/browser/signin_manager.h" |
17 #include "components/signin/core/browser/signin_status_metrics_provider.h" | 18 #include "components/signin/core/browser/signin_status_metrics_provider.h" |
18 | 19 |
19 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 20 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // will be reset to |UNKNOWN_SIGNIN_STATUS|. Then this newly added browser | 132 // will be reset to |UNKNOWN_SIGNIN_STATUS|. Then this newly added browser |
132 // is the only opened browser/profile and its signin status represents | 133 // is the only opened browser/profile and its signin status represents |
133 // the whole status. | 134 // the whole status. |
134 owner()->UpdateSigninStatus( | 135 owner()->UpdateSigninStatus( |
135 signed_in | 136 signed_in |
136 ? SigninStatusMetricsProviderBase::ALL_PROFILES_SIGNED_IN | 137 ? SigninStatusMetricsProviderBase::ALL_PROFILES_SIGNED_IN |
137 : SigninStatusMetricsProviderBase::ALL_PROFILES_NOT_SIGNED_IN); | 138 : SigninStatusMetricsProviderBase::ALL_PROFILES_NOT_SIGNED_IN); |
138 } | 139 } |
139 #endif | 140 #endif |
140 } | 141 } |
OLD | NEW |