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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 "chrome/browser/android/rlz/revenue_stats.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "chrome/browser/search_engines/ui_thread_search_terms_data_android.h"
10 #include "jni/RevenueStats_jni.h"
11 #include "url/gurl.h"
12
13 namespace chrome {
14 namespace android {
15
16 // Register native methods
17 bool RegisterRevenueStats(JNIEnv* env) {
18 return RegisterNativesImpl(env);
19 }
20
21 static void SetSearchClient(JNIEnv* env, jclass clazz, jstring jclient) {
22 SearchTermsDataAndroid::search_client_.Get() =
23 base::android::ConvertJavaStringToUTF8(env, jclient);
24 }
25
26 static void SetRlzParameterValue(JNIEnv* env, jclass clazz, jstring jrlz) {
27 SearchTermsDataAndroid::rlz_parameter_value_.Get() =
28 base::android::ConvertJavaStringToUTF16(env, jrlz);
29 }
30
31 } // namespace android
32 } // namespace chrome
OLDNEW
« 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