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

Unified Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen.h

Issue 2526973002: Added retry policy (Closed)
Patch Set: Created 4 years, 1 month 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
Index: chrome/browser/chromeos/login/enrollment/enrollment_screen.h
diff --git a/chrome/browser/chromeos/login/enrollment/enrollment_screen.h b/chrome/browser/chromeos/login/enrollment/enrollment_screen.h
index 9bd361d02b6e9e8e6dcc67087a95b164bba53c67..aef07191565dbeacf05ee96704abfe5a7291b4d3 100644
--- a/chrome/browser/chromeos/login/enrollment/enrollment_screen.h
+++ b/chrome/browser/chromeos/login/enrollment/enrollment_screen.h
@@ -13,12 +13,14 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/timer/timer.h"
#include "chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h"
#include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h"
#include "chrome/browser/chromeos/login/screens/base_screen.h"
#include "chrome/browser/chromeos/policy/enrollment_config.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/enterprise_metrics.h"
+#include "net/base/backoff_entry.h"
namespace base {
class ElapsedTimer;
@@ -157,7 +159,10 @@ class EnrollmentScreen
std::string enrolling_user_domain_;
std::string auth_code_;
std::unique_ptr<base::ElapsedTimer> elapsed_timer_;
+ base::OneShotTimer timer_;
joth 2016/11/23 22:24:03 This object can only be used for one thing at a ti
kumarniranjan 2016/11/24 18:12:46 Done.
std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_;
+ net::BackoffEntry* backoff_;
+ net::BackoffEntry::Policy* policy_;
joth 2016/11/23 22:24:03 suggest grouping the timer with these, and prefix
joth 2016/11/23 22:24:03 Don't use naked pointers here, either use unique_p
The one and only Dr. Crash 2016/11/23 23:00:15 I agree re: using objects here. Also it seems tha
kumarniranjan 2016/11/24 18:12:46 I decided to put the objects directly in as member
base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen);

Powered by Google App Engine
This is Rietveld 408576698