OLD | NEW |
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 #include "chromecast/base/chromecast_config_android.h" | 5 #include "chromecast/base/chromecast_config_android.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
8 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
9 #include "jni/ChromecastConfigAndroid_jni.h" | 10 #include "jni/ChromecastConfigAndroid_jni.h" |
10 | 11 |
11 namespace chromecast { | 12 namespace chromecast { |
12 namespace android { | 13 namespace android { |
13 | 14 |
14 namespace { | 15 namespace { |
15 base::LazyInstance<ChromecastConfigAndroid> g_instance = | 16 base::LazyInstance<ChromecastConfigAndroid> g_instance = |
16 LAZY_INSTANCE_INITIALIZER; | 17 LAZY_INSTANCE_INITIALIZER; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Called from Java. | 50 // Called from Java. |
50 void SetSendUsageStatsEnabled(JNIEnv* env, | 51 void SetSendUsageStatsEnabled(JNIEnv* env, |
51 const JavaParamRef<jclass>& caller, | 52 const JavaParamRef<jclass>& caller, |
52 jboolean enabled) { | 53 jboolean enabled) { |
53 ChromecastConfigAndroid::GetInstance()-> | 54 ChromecastConfigAndroid::GetInstance()-> |
54 send_usage_stats_changed_callback().Run(enabled); | 55 send_usage_stats_changed_callback().Run(enabled); |
55 } | 56 } |
56 | 57 |
57 } // namespace android | 58 } // namespace android |
58 } // namespace chromecast | 59 } // namespace chromecast |
OLD | NEW |