chromecast_config_android.cc revision 1320f92c476a1ad9d19dba2a48c72b75566198e9
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 3// found in the LICENSE file. 4 5#include "chromecast/android/chromecast_config_android.h" 6 7namespace chromecast { 8namespace android { 9 10namespace { 11base::LazyInstance<ChromecastConfigAndroid> g_instance = 12 LAZY_INSTANCE_INITIALIZER; 13} // namespace 14 15// static 16ChromecastConfigAndroid* ChromecastConfigAndroid::GetInstance() { 17 return g_instance.Pointer(); 18} 19 20ChromecastConfigAndroid::ChromecastConfigAndroid() { 21} 22 23ChromecastConfigAndroid::~ChromecastConfigAndroid() { 24} 25 26// Registers a handler to be notified when SendUsageStats is changed. 27void ChromecastConfigAndroid::SetSendUsageStatsChangedCallback( 28 const base::Callback<void(bool)>& callback) { 29 send_usage_stats_changed_callback_ = callback; 30} 31 32} // namespace android 33} // namespace chromecast 34