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

Side by Side Diff: chromecast/base/chromecast_config_android.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_BASE_CHROMECAST_CONFIG_ANDROID_H_ 5 #ifndef CHROMECAST_BASE_CHROMECAST_CONFIG_ANDROID_H_
6 #define CHROMECAST_BASE_CHROMECAST_CONFIG_ANDROID_H_ 6 #define CHROMECAST_BASE_CHROMECAST_CONFIG_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Registers a handler to be notified when SendUsageStats is changed. 26 // Registers a handler to be notified when SendUsageStats is changed.
27 void SetSendUsageStatsChangedCallback( 27 void SetSendUsageStatsChangedCallback(
28 const base::Callback<void(bool)>& callback); 28 const base::Callback<void(bool)>& callback);
29 29
30 const base::Callback<void(bool)>& send_usage_stats_changed_callback() const { 30 const base::Callback<void(bool)>& send_usage_stats_changed_callback() const {
31 return send_usage_stats_changed_callback_; 31 return send_usage_stats_changed_callback_;
32 } 32 }
33 33
34 private: 34 private:
35 friend struct base::DefaultLazyInstanceTraits<ChromecastConfigAndroid>; 35 friend struct base::LazyInstanceTraitsBase<ChromecastConfigAndroid>;
36 36
37 ChromecastConfigAndroid(); 37 ChromecastConfigAndroid();
38 ~ChromecastConfigAndroid(); 38 ~ChromecastConfigAndroid();
39 39
40 base::Callback<void(bool)> send_usage_stats_changed_callback_; 40 base::Callback<void(bool)> send_usage_stats_changed_callback_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ChromecastConfigAndroid); 42 DISALLOW_COPY_AND_ASSIGN(ChromecastConfigAndroid);
43 }; 43 };
44 44
45 } // namespace android 45 } // namespace android
46 } // namespace chromecast 46 } // namespace chromecast
47 47
48 #endif // CHROMECAST_BASE_CHROMECAST_CONFIG_ANDROID_H_ 48 #endif // CHROMECAST_BASE_CHROMECAST_CONFIG_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/test/logging/win/test_log_collector.cc ('k') | chromecast/base/chromecast_config_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698