Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2771943003: arc: Skip GMS Sign-In in case Android is already signed-in. (Closed)
Patch Set: use sparse UMA Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // InstanceHolder<mojom::AuthInstance>::Observer: 34 // InstanceHolder<mojom::AuthInstance>::Observer:
35 void OnInstanceReady() override; 35 void OnInstanceReady() override;
36 void OnInstanceClosed() override; 36 void OnInstanceClosed() override;
37 37
38 // mojom::AuthHost: 38 // mojom::AuthHost:
39 void OnSignInComplete() override; 39 void OnSignInComplete() override;
40 void OnSignInFailed(mojom::ArcSignInFailureReason reason) override; 40 void OnSignInFailed(mojom::ArcSignInFailureReason reason) override;
41 void RequestAccountInfo() override; 41 void RequestAccountInfo() override;
42 void ReportMetrics(mojom::MetricsType metrics_type, int32_t value) override; 42 void ReportMetrics(mojom::MetricsType metrics_type, int32_t value) override;
43 void ReportAccountCheckStatus(mojom::AccountCheckStatus status) override;
43 44
44 // Deprecated methods: 45 // Deprecated methods:
45 // For security reason this code can be used only once and exists for specific 46 // For security reason this code can be used only once and exists for specific
46 // period of time. 47 // period of time.
47 void GetAuthCodeDeprecated0( 48 void GetAuthCodeDeprecated0(
48 const GetAuthCodeDeprecated0Callback& callback) override; 49 const GetAuthCodeDeprecated0Callback& callback) override;
49 void GetAuthCodeDeprecated( 50 void GetAuthCodeDeprecated(
50 const GetAuthCodeDeprecatedCallback& callback) override; 51 const GetAuthCodeDeprecatedCallback& callback) override;
51 void GetAuthCodeAndAccountTypeDeprecated( 52 void GetAuthCodeAndAccountTypeDeprecated(
52 const GetAuthCodeAndAccountTypeDeprecatedCallback& callback) override; 53 const GetAuthCodeAndAccountTypeDeprecatedCallback& callback) override;
(...skipping 23 matching lines...) Expand all
76 std::unique_ptr<ArcAuthInfoFetcher> fetcher_; 77 std::unique_ptr<ArcAuthInfoFetcher> fetcher_;
77 78
78 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; 79 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 81 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
81 }; 82 };
82 83
83 } // namespace arc 84 } // namespace arc
84 85
85 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 86 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_context.cc ('k') | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698