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

Side by Side Diff: content/browser/android/load_url_params.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | content/browser/browser_url_handler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/android/load_url_params.h" 5 #include "content/browser/android/load_url_params.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 21 matching lines...) Expand all
32 32
33 bool RegisterLoadUrlParams(JNIEnv* env) { 33 bool RegisterLoadUrlParams(JNIEnv* env) {
34 if (!RegisterNativesImpl(env)) 34 if (!RegisterNativesImpl(env))
35 return false; 35 return false;
36 RegisterConstants(env); 36 RegisterConstants(env);
37 return true; 37 return true;
38 } 38 }
39 39
40 jboolean IsDataScheme(JNIEnv* env, jclass clazz, jstring jurl) { 40 jboolean IsDataScheme(JNIEnv* env, jclass clazz, jstring jurl) {
41 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl)); 41 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl));
42 return url.SchemeIs(kDataScheme); 42 return url.SchemeIs(url::kDataScheme);
43 } 43 }
44 44
45 } // namespace content 45 } // namespace content
OLDNEW
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | content/browser/browser_url_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698