| Index: chromecast/android/chromecast_config_android.cc
|
| diff --git a/chromecast/android/chromecast_config_android.cc b/chromecast/android/chromecast_config_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fa3a9acbce192081710bb70001fb5b0ac488777c
|
| --- /dev/null
|
| +++ b/chromecast/android/chromecast_config_android.cc
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chromecast/android/chromecast_config_android.h"
|
| +
|
| +namespace chromecast {
|
| +namespace android {
|
| +
|
| +namespace {
|
| +base::LazyInstance<ChromecastConfigAndroid> g_instance =
|
| + LAZY_INSTANCE_INITIALIZER;
|
| +} // namespace
|
| +
|
| +// static
|
| +ChromecastConfigAndroid* ChromecastConfigAndroid::GetInstance() {
|
| + return g_instance.Pointer();
|
| +}
|
| +
|
| +ChromecastConfigAndroid::ChromecastConfigAndroid() {
|
| +}
|
| +
|
| +ChromecastConfigAndroid::~ChromecastConfigAndroid() {
|
| +}
|
| +
|
| +// Registers a handler to be notified when SendUsageStats is changed.
|
| +void ChromecastConfigAndroid::set_send_usage_stats_changed_callback(
|
| + const base::Callback<void(bool)>& callback) {
|
| + send_usage_stats_changed_callback_ = callback;
|
| +}
|
| +
|
| +} // namespace android
|
| +} // namespace chromecast
|
|
|