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

Side by Side Diff: chrome/browser/chromeos/arc/arc_session_manager.h

Issue 2739323004: arc: Reactivate OptIn flow on clicking Play Store. (Closed)
Patch Set: TODO added/rebased Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_session_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void OnProvisioningFinished(ProvisioningResult result); 209 void OnProvisioningFinished(ProvisioningResult result);
210 210
211 // Returns the time when the sign in process started, or a null time if 211 // Returns the time when the sign in process started, or a null time if
212 // signing in didn't happen during this session. 212 // signing in didn't happen during this session.
213 base::Time sign_in_start_time() const { return sign_in_start_time_; } 213 base::Time sign_in_start_time() const { return sign_in_start_time_; }
214 214
215 // Returns the time when ARC was about to start, or a null time if ARC has not 215 // Returns the time when ARC was about to start, or a null time if ARC has not
216 // been started yet. 216 // been started yet.
217 base::Time arc_start_time() const { return arc_start_time_; } 217 base::Time arc_start_time() const { return arc_start_time_; }
218 218
219 // Returns true if ARC requested to start.
220 bool enable_requested() const { return enable_requested_; }
221
219 // Injectors for testing. 222 // Injectors for testing.
220 void SetArcSessionRunnerForTesting( 223 void SetArcSessionRunnerForTesting(
221 std::unique_ptr<ArcSessionRunner> arc_session_runner); 224 std::unique_ptr<ArcSessionRunner> arc_session_runner);
222 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback); 225 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback);
223 226
224 // Returns whether the Play Store app is requested to be launched by this 227 // Returns whether the Play Store app is requested to be launched by this
225 // class. Should be used only for tests. 228 // class. Should be used only for tests.
226 bool IsPlaystoreLaunchRequestedForTesting() const; 229 bool IsPlaystoreLaunchRequestedForTesting() const;
227 230
228 // Invoking StartArc() only for testing, e.g., to emulate accepting Terms of 231 // Invoking StartArc() only for testing, e.g., to emulate accepting Terms of
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 338 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
336 }; 339 };
337 340
338 // Outputs the stringified |state| to |os|. This is only for logging purposes. 341 // Outputs the stringified |state| to |os|. This is only for logging purposes.
339 std::ostream& operator<<(std::ostream& os, 342 std::ostream& operator<<(std::ostream& os,
340 const ArcSessionManager::State& state); 343 const ArcSessionManager::State& state);
341 344
342 } // namespace arc 345 } // namespace arc
343 346
344 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 347 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_session_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698