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

Unified Diff: components/devtools_bridge/android/apiary_client_factory.cc

Issue 1142463003: Remove devtools_bridge component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: components/devtools_bridge/android/apiary_client_factory.cc
diff --git a/components/devtools_bridge/android/apiary_client_factory.cc b/components/devtools_bridge/android/apiary_client_factory.cc
deleted file mode 100644
index 2224643faf0df5601e76eb310bba912c6ecbfa66..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/apiary_client_factory.cc
+++ /dev/null
@@ -1,41 +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.
-
-#include "components/devtools_bridge/android/apiary_client_factory.h"
-
-#include "base/android/jni_string.h"
-#include "google_apis/google_api_keys.h"
-#include "jni/ApiaryClientFactory_jni.h"
-
-using base::android::ConvertUTF8ToJavaString;
-
-namespace devtools_bridge {
-namespace android {
-
-// static
-bool ApiaryClientFactory::RegisterNatives(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-// static
-jstring GetAPIKey(JNIEnv* env, jobject jcaller) {
- return ConvertUTF8ToJavaString(env, google_apis::GetAPIKey()).Release();
-}
-
-// static
-jstring GetOAuthClientId(JNIEnv* env, jobject jcaller) {
- return ConvertUTF8ToJavaString(
- env, google_apis::GetOAuth2ClientID(
- google_apis::OAuth2Client::CLIENT_MAIN)).Release();
-}
-
-// static
-jstring GetOAuthClientSecret(JNIEnv* env, jobject jcaller) {
- return ConvertUTF8ToJavaString(
- env, google_apis::GetOAuth2ClientSecret(
- google_apis::OAuth2Client::CLIENT_MAIN)).Release();
-}
-
-} // namespace android
-} // namespace devtools_bridge

Powered by Google App Engine
This is Rietveld 408576698