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

Unified Diff: chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator_for_managed_user.h

Issue 2561023002: arc: ARC loading progress should not be shown when started from OOBE. (Closed)
Patch Set: small fix Created 4 years 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/arc/optin/arc_terms_of_service_oobe_negotiator_for_managed_user.h
diff --git a/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator_for_managed_user.h b/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator_for_managed_user.h
new file mode 100644
index 0000000000000000000000000000000000000000..48a900c089a61aed5ea3e11d166a529a54b67686
--- /dev/null
+++ b/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator_for_managed_user.h
@@ -0,0 +1,44 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_TERMS_OF_SERVICE_OOBE_NEGOTIATOR_FOR_MANAGED_USER_H_
hidehiko 2016/12/19 15:49:44 arc_terms_of_service_initial_oobe_negotiator_for_m
khmel 2016/12/19 17:48:11 Done.
+#define CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_TERMS_OF_SERVICE_OOBE_NEGOTIATOR_FOR_MANAGED_USER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/chromeos/arc/optin/arc_terms_of_service_negotiator.h"
+#include "chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor_observer.h"
+
+namespace arc {
+
+// Handles the Terms-of-service agreement action for Arc managed user via OOBE
hidehiko 2016/12/19 15:49:45 s/agreement/accepting/
khmel 2016/12/19 17:48:11 Done.
+// OptIn UI.
+class ArcTermsOfServiceInitialOobeNegotiatorForManagedUser
+ : public ArcTermsOfServiceNegotiator,
+ public chromeos::ArcTermsOfServiceScreenActorObserver {
+ public:
+ ArcTermsOfServiceInitialOobeNegotiatorForManagedUser();
+ ~ArcTermsOfServiceInitialOobeNegotiatorForManagedUser() override;
+
+ static void SetArcTermsOfServiceScreenActorForTesting(
+ chromeos::ArcTermsOfServiceScreenActor* actor);
+
+ protected:
+ // ArcTermsOfServiceNegotiator:
+ void StartNegotiationImpl() override;
hidehiko 2016/12/19 15:49:44 Ditto: I think this can be private.
khmel 2016/12/19 17:48:11 Done.
+
+ private:
+ void HandleTermsAccepted(bool accepted);
+
+ // chromeos::ArcTermsOfServiceScreenActorObserver:
+ void OnSkip() override;
+ void OnAccept() override;
+ void OnActorDestroyed(chromeos::ArcTermsOfServiceScreenActor* actor) override;
+
+ DISALLOW_COPY_AND_ASSIGN(
+ ArcTermsOfServiceInitialOobeNegotiatorForManagedUser);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_OPTIN_ARC_TERMS_OF_SERVICE_OOBE_NEGOTIATOR_FOR_MANAGED_USER_H_

Powered by Google App Engine
This is Rietveld 408576698