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

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

Issue 2248353002: [M53 cherry-pick] Migrate ArcUserDataService into ArcAuthService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 ea509fb2978ae9412d661f984399fc46cec5026a..3b48bfd09bb23032bb6dac6c036935b2ada13b28 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -181,6 +181,15 @@ class ArcAuthService : public ArcService,
// Stops ARC without changing ArcEnabled preference.
void StopArc();
+ // StopArc(), then EnableArc(). Between them data clear may happens.
+ // This is a special method to support enterprise device lost case.
+ // This can be called only when ARC is running.
+ void StopAndEnableArc();
+
+ // Removes the data if ARC is stopped. Otherwise, queue to remove the data
+ // on ARC is stopped.
+ void RemoveArcData();
+
// Returns current page that has to be shown in OptIn UI.
UIPage ui_page() const { return ui_page_; }
@@ -201,6 +210,7 @@ class ArcAuthService : public ArcService,
void StartAndroidManagementClient();
void CheckAndroidManagement(bool background_mode);
void StartArcIfSignedIn();
+ void OnArcDataRemoved(bool success);
// Unowned pointer. Keeps current profile.
Profile* profile_ = nullptr;
@@ -219,6 +229,7 @@ class ArcAuthService : public ArcService,
UIPage ui_page_ = UIPage::NO_PAGE;
base::string16 ui_page_status_;
bool clear_required_ = false;
+ bool reenable_arc_ = false;
bool waiting_for_reply_ = false;
std::unique_ptr<ArcAuthContext> context_;
« 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