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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2412133004: arc: Restore broken auth code requst on demand. (Closed)
Patch Set: remove DCHECK_EQ(state_, State::ACTIVE) (State can be ACTIVE/FETCHING_CODE) Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_auth_service.h
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/arc_auth_service.h
index e4aca45e37fbafeed29d34f99c0485b1001f3d51..8f161ed6a8bd73e4bcbbd25bed609c36ca49f576 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -205,7 +205,7 @@ class ArcAuthService : public ArcService,
UIPage ui_page() const { return ui_page_; }
// Returns current page status, relevant to the specific page.
- const base::string16& ui_page_status() { return ui_page_status_; }
+ const base::string16& ui_page_status() const { return ui_page_status_; }
private:
void StartArc();
@@ -220,9 +220,12 @@ class ArcAuthService : public ArcService,
void StartUI();
void StartAndroidManagementClient();
void CheckAndroidManagement(bool background_mode);
- void StartArcIfSignedIn();
+ void OnAndroidManagementPassed();
void OnArcDataRemoved(bool success);
void OnArcSignInTimeout();
+ bool IsAuthCodeRequest() const;
+ void FetchAuthCode();
+ void PrepareContextForAuthCodeRequest();
// Unowned pointer. Keeps current profile.
Profile* profile_ = nullptr;
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698