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

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

Issue 2755073003: [Merge M58] arc: Reactivate OptIn flow on clicking Play Store. (Closed)
Patch Set: update unit_tests expectation for M58 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void OnProvisioningFinished(ProvisioningResult result); 201 void OnProvisioningFinished(ProvisioningResult result);
202 202
203 // Returns the time when the sign in process started, or a null time if 203 // Returns the time when the sign in process started, or a null time if
204 // signing in didn't happen during this session. 204 // signing in didn't happen during this session.
205 base::Time sign_in_start_time() const { return sign_in_start_time_; } 205 base::Time sign_in_start_time() const { return sign_in_start_time_; }
206 206
207 // Returns the time when ARC was about to start, or a null time if ARC has not 207 // Returns the time when ARC was about to start, or a null time if ARC has not
208 // been started yet. 208 // been started yet.
209 base::Time arc_start_time() const { return arc_start_time_; } 209 base::Time arc_start_time() const { return arc_start_time_; }
210 210
211 // Returns true if ARC requested to start.
212 bool enable_requested() const { return enable_requested_; }
213
211 // Injectors for testing. 214 // Injectors for testing.
212 void SetArcSessionRunnerForTesting( 215 void SetArcSessionRunnerForTesting(
213 std::unique_ptr<ArcSessionRunner> arc_session_runner); 216 std::unique_ptr<ArcSessionRunner> arc_session_runner);
214 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback); 217 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback);
215 218
216 // Returns whether the Play Store app is requested to be launched by this 219 // Returns whether the Play Store app is requested to be launched by this
217 // class. Should be used only for tests. 220 // class. Should be used only for tests.
218 bool IsPlaystoreLaunchRequestedForTesting() const; 221 bool IsPlaystoreLaunchRequestedForTesting() const;
219 222
220 // Invoking StartArc() only for testing, e.g., to emulate accepting Terms of 223 // Invoking StartArc() only for testing, e.g., to emulate accepting Terms of
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 306 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
304 }; 307 };
305 308
306 // Outputs the stringified |state| to |os|. This is only for logging purposes. 309 // Outputs the stringified |state| to |os|. This is only for logging purposes.
307 std::ostream& operator<<(std::ostream& os, 310 std::ostream& operator<<(std::ostream& os,
308 const ArcSessionManager::State& state); 311 const ArcSessionManager::State& state);
309 312
310 } // namespace arc 313 } // namespace arc
311 314
312 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 315 #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