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

Unified Diff: chrome/browser/android/chromium_application.cc

Issue 687733006: Move getBrowserUserAgent() under ChromiumApplication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/chromium_application.cc
diff --git a/chrome/browser/android/chromium_application.cc b/chrome/browser/android/chromium_application.cc
index 133897bc2896ae0094950c37e29d47c3d8fe92e9..d0f5b80482609d684cdf1f293e87ba89cbb7efdc 100644
--- a/chrome/browser/android/chromium_application.cc
+++ b/chrome/browser/android/chromium_application.cc
@@ -5,10 +5,18 @@
#include "chrome/browser/android/chromium_application.h"
#include "base/android/jni_android.h"
+#include "base/android/jni_string.h"
#include "chrome/browser/android/tab_android.h"
+#include "chrome/common/chrome_content_client.h"
#include "content/public/browser/web_contents.h"
#include "jni/ChromiumApplication_jni.h"
+using base::android::ConvertUTF8ToJavaString;
+
+static jstring GetBrowserUserAgent(JNIEnv* env, jclass clazz) {
+ return ConvertUTF8ToJavaString(env, GetUserAgent()).Release();
+}
+
namespace chrome {
namespace android {
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698