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

Unified Diff: chromecast/android/chromecast_config_android.h

Issue 1180633002: Chromecast: don't try to upload crash immediately. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/android/cast_jni_registrar.cc ('k') | chromecast/android/chromecast_config_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/android/chromecast_config_android.h
diff --git a/chromecast/android/chromecast_config_android.h b/chromecast/android/chromecast_config_android.h
deleted file mode 100644
index e09d657acc92dffb186182e5cd03cedb192e255b..0000000000000000000000000000000000000000
--- a/chromecast/android/chromecast_config_android.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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.
-
-#ifndef CHROMECAST_ANDROID_CHROMECAST_CONFIG_ANDROID_H_
-#define CHROMECAST_ANDROID_CHROMECAST_CONFIG_ANDROID_H_
-
-#include <jni.h>
-
-#include "base/callback.h"
-#include "base/lazy_instance.h"
-#include "base/macros.h"
-
-namespace chromecast {
-namespace android {
-
-class ChromecastConfigAndroid {
- public:
- static ChromecastConfigAndroid* GetInstance();
-
- // Returns whether or not the user has allowed sending usage stats and
- // crash reports.
- bool CanSendUsageStats();
-
- // Registers a handler to be notified when SendUsageStats is changed.
- void SetSendUsageStatsChangedCallback(
- const base::Callback<void(bool)>& callback);
-
- const base::Callback<void(bool)>& send_usage_stats_changed_callback() const {
- return send_usage_stats_changed_callback_;
- }
-
- private:
- friend struct base::DefaultLazyInstanceTraits<ChromecastConfigAndroid>;
-
- ChromecastConfigAndroid();
- ~ChromecastConfigAndroid();
-
- base::Callback<void(bool)> send_usage_stats_changed_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromecastConfigAndroid);
-};
-
-} // namespace android
-} // namespace chromecast
-
-#endif // CHROMECAST_ANDROID_CHROMECAST_CONFIG_ANDROID_H_
« no previous file with comments | « chromecast/android/cast_jni_registrar.cc ('k') | chromecast/android/chromecast_config_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698