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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 14271024: [Android WebView] Move the most of WebSettings into AwSettings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated findbugs issues Created 7 years, 8 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: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index befac7aefb294146007a62a45e221b4cc7c804ab..8745bf71e0ed814c81c776b4a9a6f62572f67013 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -794,22 +794,6 @@ jint ContentViewCoreImpl::GetCurrentRenderProcessId(JNIEnv* env, jobject obj) {
web_contents_->GetRenderViewHost());
}
-void ContentViewCoreImpl::SetAllUserAgentOverridesInHistory(
- JNIEnv* env,
- jobject,
- jstring user_agent_override) {
- bool override_used = user_agent_override != NULL;
- if (override_used) {
- std::string override =
- base::android::ConvertJavaStringToUTF8(env, user_agent_override);
- web_contents_->SetUserAgentOverride(override);
- }
-
- const NavigationController& controller = web_contents_->GetController();
- for (int i = 0; i < controller.GetEntryCount(); ++i)
- controller.GetEntryAtIndex(i)->SetIsOverridingUserAgent(override_used);
-}
-
ScopedJavaLocalRef<jstring> ContentViewCoreImpl::GetURL(
JNIEnv* env, jobject) const {
return ConvertUTF8ToJavaString(env, GetWebContents()->GetURL().spec());

Powered by Google App Engine
This is Rietveld 408576698