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

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

Issue 2561023002: arc: ARC loading progress should not be shown when started from OOBE. (Closed)
Patch Set: refactored Created 3 years, 11 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_session_manager_data_removed_waiter.h
diff --git a/chrome/browser/chromeos/arc/arc_session_manager_data_removed_waiter.h b/chrome/browser/chromeos/arc/arc_session_manager_data_removed_waiter.h
new file mode 100644
index 0000000000000000000000000000000000000000..073c79577f48c9a61b663e8b94e93552b5987b6a
--- /dev/null
+++ b/chrome/browser/chromeos/arc/arc_session_manager_data_removed_waiter.h
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
hidehiko 2017/01/30 10:12:35 Could you mkdir c/b/c/arc/test directory, and put
khmel 2017/01/31 02:47:08 Done.
+// 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_ARC_SESSION_MANAGER_DATA_REMOVED_WAITER_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_DATA_REMOVED_WAITER_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "chrome/browser/chromeos/arc/arc_session_manager.h"
+
+namespace base {
+class RunLoop;
+}
+
+namespace arc {
+
+// Waits for ARC data has been removed.
+class ArcSessionManagerDataRemovedWaiter : public ArcSessionManager::Observer {
hidehiko 2017/01/30 10:12:35 Optional: the name looks long now. How about ArcDa
khmel 2017/01/31 02:47:08 Done.
+ public:
+ ArcSessionManagerDataRemovedWaiter();
+ ~ArcSessionManagerDataRemovedWaiter() override;
+
+ void Wait();
hidehiko 2017/01/30 10:12:35 Could you document?
khmel 2017/01/31 02:47:08 Done.
+
+ // ArcSessionManager::Observer:
+ void OnArcDataRemoved() override;
+
+ private:
+ std::unique_ptr<base::RunLoop> run_loop_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcSessionManagerDataRemovedWaiter);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_DATA_REMOVED_WAITER_H_

Powered by Google App Engine
This is Rietveld 408576698