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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_bridge.cc

Issue 2477943002: [Offline Pages] Remove a debugging feature and a misleading flag. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/offline_pages/offline_page_bridge.h" 5 #include "chrome/browser/android/offline_pages/offline_page_bridge.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 j_result_codes); 206 j_result_codes);
207 } 207 }
208 208
209 } // namespace 209 } // namespace
210 210
211 static jboolean IsOfflineBookmarksEnabled(JNIEnv* env, 211 static jboolean IsOfflineBookmarksEnabled(JNIEnv* env,
212 const JavaParamRef<jclass>& clazz) { 212 const JavaParamRef<jclass>& clazz) {
213 return offline_pages::IsOfflineBookmarksEnabled(); 213 return offline_pages::IsOfflineBookmarksEnabled();
214 } 214 }
215 215
216 static jboolean IsBackgroundLoadingEnabled(JNIEnv* env,
217 const JavaParamRef<jclass>& clazz) {
218 return offline_pages::IsOfflinePagesBackgroundLoadingEnabled();
219 }
220
221 static jboolean IsPageSharingEnabled(JNIEnv* env, 216 static jboolean IsPageSharingEnabled(JNIEnv* env,
222 const JavaParamRef<jclass>& clazz) { 217 const JavaParamRef<jclass>& clazz) {
223 return offline_pages::IsOfflinePagesSharingEnabled(); 218 return offline_pages::IsOfflinePagesSharingEnabled();
224 } 219 }
225 220
226 static jboolean CanSavePage(JNIEnv* env, 221 static jboolean CanSavePage(JNIEnv* env,
227 const JavaParamRef<jclass>& clazz, 222 const JavaParamRef<jclass>& clazz,
228 const JavaParamRef<jstring>& j_url) { 223 const JavaParamRef<jstring>& j_url) {
229 GURL url(ConvertJavaStringToUTF8(env, j_url)); 224 GURL url(ConvertJavaStringToUTF8(env, j_url));
230 return OfflinePageModel::CanSaveURL(url); 225 return OfflinePageModel::CanSaveURL(url);
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 env, ConvertUTF8ToJavaString(env, client_id.name_space), 568 env, ConvertUTF8ToJavaString(env, client_id.name_space),
574 ConvertUTF8ToJavaString(env, client_id.id)); 569 ConvertUTF8ToJavaString(env, client_id.id));
575 } 570 }
576 571
577 bool RegisterOfflinePageBridge(JNIEnv* env) { 572 bool RegisterOfflinePageBridge(JNIEnv* env) {
578 return RegisterNativesImpl(env); 573 return RegisterNativesImpl(env);
579 } 574 }
580 575
581 } // namespace android 576 } // namespace android
582 } // namespace offline_pages 577 } // namespace offline_pages
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | components/offline_pages/offline_page_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698