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

Side by Side Diff: components/dom_distiller/core/url_utils_android.cc

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix android webview build issues. Created 6 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 "components/dom_distiller/core/url_utils_android.h"
6
7 #include <string> 5 #include <string>
8 6
9 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
10 #include "components/dom_distiller/core/url_utils.h" 8 #include "components/dom_distiller/core/url_utils.h"
11 #include "jni/DomDistillerUrlUtils_jni.h" 9 #include "jni/DomDistillerUrlUtils_jni.h"
12 #include "url/gurl.h" 10 #include "url/gurl.h"
13 11
14 namespace dom_distiller { 12 namespace dom_distiller {
15 13
16 namespace url_utils { 14 namespace url_utils {
(...skipping 10 matching lines...) Expand all
27 return NULL; 25 return NULL;
28 } 26 }
29 GURL view_url = 27 GURL view_url =
30 dom_distiller::url_utils::GetDistillerViewUrlFromUrl(scheme, url); 28 dom_distiller::url_utils::GetDistillerViewUrlFromUrl(scheme, url);
31 if (!view_url.is_valid()) { 29 if (!view_url.is_valid()) {
32 return NULL; 30 return NULL;
33 } 31 }
34 return base::android::ConvertUTF8ToJavaString(env, view_url.spec()).Release(); 32 return base::android::ConvertUTF8ToJavaString(env, view_url.spec()).Release();
35 } 33 }
36 34
37 bool RegisterUrlUtils(JNIEnv* env) { return RegisterNativesImpl(env); }
38
39 } // namespace android 35 } // namespace android
40 36
41 } // namespace url_utils 37 } // namespace url_utils
42 38
43 } // namespace dom_distiller 39 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698