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

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

Issue 2323043003: arc: Add a global 5 minute timeout for ARC opt-in (Closed)
Patch Set: nits Created 4 years, 3 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 1a8433e8b02d92c79ed5d17faeda77567aac3616..3260174daf2d6c940c32ed74e45004dde41f2800 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "base/timer/timer.h"
#include "chrome/browser/chromeos/arc/arc_android_management_checker_delegate.h"
#include "chrome/browser/chromeos/arc/arc_auth_code_fetcher_delegate.h"
#include "chrome/browser/chromeos/arc/arc_auth_context_delegate.h"
@@ -219,6 +220,7 @@ class ArcAuthService : public ArcService,
void CheckAndroidManagement(bool background_mode);
void StartArcIfSignedIn();
void OnArcDataRemoved(bool success);
+ void OnArcSignInTimeout();
// Unowned pointer. Keeps current profile.
Profile* profile_ = nullptr;
@@ -238,7 +240,7 @@ class ArcAuthService : public ArcService,
base::string16 ui_page_status_;
bool clear_required_ = false;
bool reenable_arc_ = false;
- bool waiting_for_reply_ = false;
+ base::OneShotTimer arc_sign_in_timer_;
std::unique_ptr<ArcAuthContext> context_;
std::unique_ptr<ArcAuthCodeFetcher> auth_code_fetcher_;
« 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