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

Unified Diff: blimp/client/core/settings/android/settings_android.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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
Index: blimp/client/core/settings/android/settings_android.cc
diff --git a/blimp/client/core/settings/android/settings_android.cc b/blimp/client/core/settings/android/settings_android.cc
deleted file mode 100644
index 9263076cc6b946603b2f2a6003fdace2e4bb1f6b..0000000000000000000000000000000000000000
--- a/blimp/client/core/settings/android/settings_android.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2016 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 "blimp/client/core/settings/android/settings_android.h"
-
-#include "base/android/jni_android.h"
-#include "jni/Settings_jni.h"
-
-namespace blimp {
-namespace client {
-
-// static
-bool SettingsAndroid::RegisterJni(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-// static
-SettingsAndroid* SettingsAndroid::FromJavaObject(
- JNIEnv* env,
- const base::android::JavaRef<jobject>& jobj) {
- return reinterpret_cast<SettingsAndroid*>(
- Java_Settings_getNativePtr(env, jobj));
-}
-
-base::android::ScopedJavaLocalRef<jobject> SettingsAndroid::GetJavaObject() {
- return base::android::ScopedJavaLocalRef<jobject>(java_obj_);
-}
-
-SettingsAndroid::SettingsAndroid(PrefService* local_state)
- : Settings(local_state) {
- JNIEnv* env = base::android::AttachCurrentThread();
- java_obj_.Reset(
- env, Java_Settings_create(env, reinterpret_cast<intptr_t>(this)).obj());
-}
-
-SettingsAndroid::~SettingsAndroid() {
- Java_Settings_onNativeDestroyed(base::android::AttachCurrentThread(),
- java_obj_);
-}
-
-void SettingsAndroid::SetEnableBlimpModeWrap(JNIEnv* env,
- jobject jobj,
- bool enable) {
- SetEnableBlimpMode(enable);
-}
-
-void SettingsAndroid::SetRecordWholeDocumentWrap(JNIEnv* env,
- jobject jobj,
- bool enable) {
- SetRecordWholeDocument(enable);
-}
-
-void SettingsAndroid::SetShowNetworkStatsWrap(JNIEnv* env,
- jobject jobj,
- bool enable) {
- SetShowNetworkStats(enable);
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/core/settings/android/settings_android.h ('k') | blimp/client/core/settings/android/settings_observer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698