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

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.h

Issue 666063002: [Android] Upstream ChromeNativePreferences as PrefServiceBridge (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
Index: chrome/browser/android/preferences/pref_service_bridge.h
diff --git a/chrome/browser/android/preferences/pref_service_bridge.h b/chrome/browser/android/preferences/pref_service_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..af056061da113eb23db1c0153305281e4eeeab28
--- /dev/null
+++ b/chrome/browser/android/preferences/pref_service_bridge.h
@@ -0,0 +1,20 @@
+// 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.
+
+#ifndef CHROME_BROWSER_ANDROID_PREFERENCES_PREF_SERVICE_BRIDGE_H_
+#define CHROME_BROWSER_ANDROID_PREFERENCES_PREF_SERVICE_BRIDGE_H_
+
+#include <jni.h>
+#include <string>
+
+bool RegisterPrefServiceBridge(JNIEnv* env);
+
+// Use |locale| to create a language-region pair and language code to prepend to
+// the default accept languages. For Malay, we'll end up creating
+// "ms-MY,ms,en-US,en", and for Swiss-German, we will have
+// "de-CH,de-DE,de,en-US,en".
+void PrependToAcceptLanguagesIfNecessary(std::string locale,
+ std::string* accept_languages);
+
+#endif // CHROME_BROWSER_ANDROID_PREFERENCES_PREF_SERVICE_BRIDGE_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/preferences/pref_service_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698