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 #import "ios/chrome/browser/signin/authentication_service.h" | 5 #import "ios/chrome/browser/signin/authentication_service.h" |
6 | 6 |
7 #include <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "components/browser_sync/profile_sync_service.h" | 15 #include "components/browser_sync/profile_sync_service.h" |
16 #include "components/pref_registry/pref_registry_syncable.h" | 16 #include "components/pref_registry/pref_registry_syncable.h" |
17 #include "components/prefs/pref_service.h" | 17 #include "components/prefs/pref_service.h" |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 // integration is enabled. | 607 // integration is enabled. |
608 return false; | 608 return false; |
609 } | 609 } |
610 std::string hosted_domain = | 610 std::string hosted_domain = |
611 ios::SigninManagerFactory::GetForBrowserState(browser_state_) | 611 ios::SigninManagerFactory::GetForBrowserState(browser_state_) |
612 ->GetAuthenticatedAccountInfo() | 612 ->GetAuthenticatedAccountInfo() |
613 .hosted_domain; | 613 .hosted_domain; |
614 return !hosted_domain.empty() && | 614 return !hosted_domain.empty() && |
615 hosted_domain != AccountTrackerService::kNoHostedDomainFound; | 615 hosted_domain != AccountTrackerService::kNoHostedDomainFound; |
616 } | 616 } |
OLD | NEW |