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

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

Issue 2202783002: android_webview: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: android_webview: Remove unneeded RegisterNatives() calls Created 4 years, 4 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_web_resource_response_impl.h" 5 #include "android_webview/native/aw_web_resource_response_impl.h"
6 6
7 #include "android_webview/native/input_stream_impl.h" 7 #include "android_webview/native/input_stream_impl.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_array.h" 9 #include "base/android/jni_array.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 DCHECK_EQ(header_values.size(), header_names.size()); 91 DCHECK_EQ(header_values.size(), header_names.size());
92 for(size_t i = 0; i < header_names.size(); ++i) { 92 for(size_t i = 0; i < header_names.size(); ++i) {
93 std::string header_line(header_names[i]); 93 std::string header_line(header_names[i]);
94 header_line.append(": "); 94 header_line.append(": ");
95 header_line.append(header_values[i]); 95 header_line.append(header_values[i]);
96 headers->AddHeader(header_line); 96 headers->AddHeader(header_line);
97 } 97 }
98 return true; 98 return true;
99 } 99 }
100 100
101 bool RegisterAwWebResourceResponse(JNIEnv* env) {
102 return RegisterNativesImpl(env);
103 }
104
105 } // namespace android_webview 101 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_web_resource_response_impl.h ('k') | android_webview/native/input_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698