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

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

Issue 2209173002: Migrate ArcUserDataService into ArcAuthService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added more comments. 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
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 3466f886ad1a252bc28ddfc88d673d6b26ed6c4e..3e726990a9342be916c343b7cd32aafa3327d5d2 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();
+ // If arc is running, StopArc(), then StartArc(). Between them
+ // data clear may happens.
+ void ReenableArc();
Luis Héctor Chávez 2016/08/09 16:40:02 How about calling this "RestartArc()"? Also, the d
hidehiko 2016/08/10 05:41:19 Can we keep the name? The comment was wrong and fi
+
+ // Removes the data if ARC is stopped. Otherwise, queue to remove the data
+ // on ARC is stopped.
+ void RemoveArcData();
Luis Héctor Chávez 2016/08/09 16:40:02 How about to make this less confusing, call this "
hidehiko 2016/08/10 05:41:19 This does not actually "schedule" but remove the d
+ void OnArcDataRemoved(bool success);
khmel 2016/08/09 15:23:11 it seems, it can be private
hidehiko 2016/08/10 05:41:19 Done.
+
// Returns current page that has to be shown in OptIn UI.
UIPage ui_page() const { return ui_page_; }
@@ -219,6 +228,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') | chrome/browser/chromeos/arc/arc_auth_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698