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

Side by Side Diff: chrome/browser/android/webapk/manifest_upgrade_detector.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/android/webapk/manifest_upgrade_detector.h" 5 #include "chrome/browser/android/webapk/manifest_upgrade_detector.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 "chrome/browser/android/shortcut_info.h" 10 #include "chrome/browser/android/shortcut_info.h"
11 #include "content/public/browser/render_frame_host.h" 11 #include "content/public/browser/render_frame_host.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/common/manifest.h" 13 #include "content/public/common/manifest.h"
14 #include "jni/ManifestUpgradeDetector_jni.h" 14 #include "jni/ManifestUpgradeDetector_jni.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 using base::android::JavaParamRef;
18 using base::android::ScopedJavaLocalRef;
19
17 namespace { 20 namespace {
18 21
19 // Returns whether the given |url| is within the scope of the |scope| url. 22 // Returns whether the given |url| is within the scope of the |scope| url.
20 bool IsInScope(const GURL& url, const GURL& scope) { 23 bool IsInScope(const GURL& url, const GURL& scope) {
21 return base::StartsWith(url.spec(), scope.spec(), 24 return base::StartsWith(url.spec(), scope.spec(),
22 base::CompareCase::SENSITIVE); 25 base::CompareCase::SENSITIVE);
23 } 26 }
24 27
25 } // anonymous namespace 28 } // anonymous namespace
26 29
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 env, java_ref_.obj(), 136 env, java_ref_.obj(),
134 java_url.obj(), 137 java_url.obj(),
135 java_scope.obj(), 138 java_scope.obj(),
136 java_name.obj(), 139 java_name.obj(),
137 java_short_name.obj(), 140 java_short_name.obj(),
138 info.display, 141 info.display,
139 info.orientation, 142 info.orientation,
140 info.theme_color, 143 info.theme_color,
141 info.background_color); 144 info.background_color);
142 } 145 }
OLDNEW
« no previous file with comments | « chrome/browser/android/web_contents_factory.cc ('k') | chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698