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

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

Issue 2201493002: [Merge to M53] arc: Implement safe access to ArcAuthService. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2785
Patch Set: 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 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_ARC_SUPPORT_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/arc/arc_auth_service.h" 9 #include "chrome/browser/chromeos/arc/arc_auth_service.h"
10 #include "components/prefs/pref_change_registrar.h" 10 #include "components/prefs/pref_change_registrar.h"
(...skipping 18 matching lines...) Expand all
29 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const override; 29 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const override;
30 30
31 // Overrides arc::ArcAuthService::Observer: 31 // Overrides arc::ArcAuthService::Observer:
32 void OnOptInUIClose() override; 32 void OnOptInUIClose() override;
33 void OnOptInUIShowPage(arc::ArcAuthService::UIPage page, 33 void OnOptInUIShowPage(arc::ArcAuthService::UIPage page,
34 const base::string16& status) override; 34 const base::string16& status) override;
35 35
36 private: 36 private:
37 ArcSupportHost(); 37 ArcSupportHost();
38 38
39 bool Initialize();
39 void OnMetricsPreferenceChanged(); 40 void OnMetricsPreferenceChanged();
40 void Initialize();
41 void SendMetricsMode(); 41 void SendMetricsMode();
42 void EnableMetrics(bool is_enabled); 42 void EnableMetrics(bool is_enabled);
43 void EnableBackupRestore(bool is_enabled); 43 void EnableBackupRestore(bool is_enabled);
44 44
45 // Unowned pointer. 45 // Unowned pointer.
46 Client* client_ = nullptr; 46 Client* client_ = nullptr;
47 47
48 // Used to track metrics preference. 48 // Used to track metrics preference.
49 PrefChangeRegistrar pref_change_registrar_; 49 PrefChangeRegistrar pref_change_registrar_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); 51 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service_unittest.cc ('k') | chrome/browser/chromeos/arc/arc_support_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698