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

Unified Diff: chrome/browser/android/rlz/revenue_stats.cc

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? 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
« no previous file with comments | « chrome/browser/android/rlz/revenue_stats.h ('k') | chrome/browser/android/spdy_proxy_resource_throttle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/rlz/revenue_stats.cc
diff --git a/chrome/browser/android/rlz/revenue_stats.cc b/chrome/browser/android/rlz/revenue_stats.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f89a2c95ad332448cb5a4895a635842e4734e7be
--- /dev/null
+++ b/chrome/browser/android/rlz/revenue_stats.cc
@@ -0,0 +1,32 @@
+// Copyright 2015 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 "chrome/browser/android/rlz/revenue_stats.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_string.h"
+#include "chrome/browser/search_engines/ui_thread_search_terms_data_android.h"
+#include "jni/RevenueStats_jni.h"
+#include "url/gurl.h"
+
+namespace chrome {
+namespace android {
+
+// Register native methods
+bool RegisterRevenueStats(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+static void SetSearchClient(JNIEnv* env, jclass clazz, jstring jclient) {
+ SearchTermsDataAndroid::search_client_.Get() =
+ base::android::ConvertJavaStringToUTF8(env, jclient);
+}
+
+static void SetRlzParameterValue(JNIEnv* env, jclass clazz, jstring jrlz) {
+ SearchTermsDataAndroid::rlz_parameter_value_.Get() =
+ base::android::ConvertJavaStringToUTF16(env, jrlz);
+}
+
+} // namespace android
+} // namespace chrome
« no previous file with comments | « chrome/browser/android/rlz/revenue_stats.h ('k') | chrome/browser/android/spdy_proxy_resource_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698