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

Side by Side Diff: android_webview/native/aw_contents_statics.cc

Issue 1907703002: Fix a nasty scroll bug for Chrome Now-on-tap feature. Also combine the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: further cleanup Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/aw_contents_statics.h" 5 #include "android_webview/native/aw_contents_statics.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/net/aw_url_request_context_getter.h" 8 #include "android_webview/browser/net/aw_url_request_context_getter.h"
9 #include "android_webview/common/aw_version_info_values.h" 9 #include "android_webview/common/aw_version_info_values.h"
10 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 10 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 // static 95 // static
96 void SetLegacyCacheRemovalDelayForTest(JNIEnv*, 96 void SetLegacyCacheRemovalDelayForTest(JNIEnv*,
97 const JavaParamRef<jclass>&, 97 const JavaParamRef<jclass>&,
98 jlong delay_ms) { 98 jlong delay_ms) {
99 AwBrowserContext::SetLegacyCacheRemovalDelayForTest(delay_ms); 99 AwBrowserContext::SetLegacyCacheRemovalDelayForTest(delay_ms);
100 } 100 }
101 101
102 // static 102 // static
103 ScopedJavaLocalRef<jstring> GetProductVersion(JNIEnv* env,
104 const JavaParamRef<jclass>&) {
105 return base::android::ConvertUTF8ToJavaString(env, PRODUCT_VERSION);
106 }
107
108 // static
109 void SetServiceWorkerIoThreadClient( 103 void SetServiceWorkerIoThreadClient(
110 JNIEnv* env, 104 JNIEnv* env,
111 const JavaParamRef<jclass>&, 105 const JavaParamRef<jclass>&,
112 const base::android::JavaParamRef<jobject>& io_thread_client, 106 const base::android::JavaParamRef<jobject>& io_thread_client,
113 const base::android::JavaParamRef<jobject>& browser_context) { 107 const base::android::JavaParamRef<jobject>& browser_context) {
114 AwContentsIoThreadClientImpl::SetServiceWorkerIoThreadClient( 108 AwContentsIoThreadClientImpl::SetServiceWorkerIoThreadClient(
115 io_thread_client, browser_context); 109 io_thread_client, browser_context);
116 } 110 }
117 111
118 112
119 bool RegisterAwContentsStatics(JNIEnv* env) { 113 bool RegisterAwContentsStatics(JNIEnv* env) {
120 return RegisterNativesImpl(env); 114 return RegisterNativesImpl(env);
121 } 115 }
122 116
123 } // namespace android_webview 117 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698