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

Side by Side Diff: chrome/browser/chromeos/arc/extensions/fake_arc_support.h

Issue 2682833003: Skip ARC initial screen when everything is set up by policy (Closed)
Patch Set: Rebase Created 3 years, 10 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
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_EXTENSIONS_FAKE_ARC_SUPPORT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 // ARC support host. 25 // ARC support host.
26 void Open(Profile* profile); 26 void Open(Profile* profile);
27 27
28 // Emulates clicking Close button. 28 // Emulates clicking Close button.
29 void Close(); 29 void Close();
30 30
31 // Terms of service page emulation. 31 // Terms of service page emulation.
32 // Emulates clicking Agree button. 32 // Emulates clicking Agree button.
33 void ClickAgreeButton(); 33 void ClickAgreeButton();
34 34
35 bool metrics_mode() const { return metrics_mode_; }
36 bool backup_and_restore_mode() const { return backup_and_restore_mode_; }
37 bool location_service_mode() const { return location_service_mode_; }
38
35 // Emulates checking preference box. 39 // Emulates checking preference box.
36 void set_metrics_mode(bool mode) { metrics_mode_ = mode; } 40 void set_metrics_mode(bool mode) { metrics_mode_ = mode; }
37 void set_backup_and_restore_mode(bool mode) { 41 void set_backup_and_restore_mode(bool mode) {
38 backup_and_restore_mode_ = mode; 42 backup_and_restore_mode_ = mode;
39 } 43 }
40 void set_location_service_mode(bool mode) { location_service_mode_ = mode; } 44 void set_location_service_mode(bool mode) { location_service_mode_ = mode; }
41 45
42 // Error page emulation. 46 // Error page emulation.
43 void ClickRetryButton(); 47 void ClickRetryButton();
44 48
(...skipping 14 matching lines...) Expand all
59 bool location_service_mode_ = false; 63 bool location_service_mode_ = false;
60 64
61 base::WeakPtrFactory<FakeArcSupport> weak_ptr_factory_; 65 base::WeakPtrFactory<FakeArcSupport> weak_ptr_factory_;
62 66
63 DISALLOW_COPY_AND_ASSIGN(FakeArcSupport); 67 DISALLOW_COPY_AND_ASSIGN(FakeArcSupport);
64 }; 68 };
65 69
66 } // namespace arc 70 } // namespace arc
67 71
68 #endif // CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_ARC_EXTENSIONS_FAKE_ARC_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698