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

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

Issue 2317723003: [Offline Pages] Removes the deprecated IsOfflinePages synthetic flag since no uses of it remain. (Closed)
Patch Set: Created 4 years, 3 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 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 base::android::ToJavaLongArray(env, update_request_ids); 191 base::android::ToJavaLongArray(env, update_request_ids);
192 ScopedJavaLocalRef<jintArray> j_result_codes = 192 ScopedJavaLocalRef<jintArray> j_result_codes =
193 base::android::ToJavaIntArray(env, update_request_results); 193 base::android::ToJavaIntArray(env, update_request_results);
194 194
195 Java_RequestsRemovedCallback_onResult(env, j_callback_obj, j_result_ids, 195 Java_RequestsRemovedCallback_onResult(env, j_callback_obj, j_result_ids,
196 j_result_codes); 196 j_result_codes);
197 } 197 }
198 198
199 } // namespace 199 } // namespace
200 200
201 static jboolean IsOfflinePagesEnabled(JNIEnv* env,
202 const JavaParamRef<jclass>& clazz) {
203 return offline_pages::IsOfflinePagesEnabled();
204 }
205
206 static jboolean IsOfflineBookmarksEnabled(JNIEnv* env, 201 static jboolean IsOfflineBookmarksEnabled(JNIEnv* env,
207 const JavaParamRef<jclass>& clazz) { 202 const JavaParamRef<jclass>& clazz) {
208 return offline_pages::IsOfflineBookmarksEnabled(); 203 return offline_pages::IsOfflineBookmarksEnabled();
209 } 204 }
210 205
211 static jboolean IsBackgroundLoadingEnabled(JNIEnv* env, 206 static jboolean IsBackgroundLoadingEnabled(JNIEnv* env,
212 const JavaParamRef<jclass>& clazz) { 207 const JavaParamRef<jclass>& clazz) {
213 return offline_pages::IsOfflinePagesBackgroundLoadingEnabled(); 208 return offline_pages::IsOfflinePagesBackgroundLoadingEnabled();
214 } 209 }
215 210
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 env, ConvertUTF8ToJavaString(env, client_id.name_space), 534 env, ConvertUTF8ToJavaString(env, client_id.name_space),
540 ConvertUTF8ToJavaString(env, client_id.id)); 535 ConvertUTF8ToJavaString(env, client_id.id));
541 } 536 }
542 537
543 bool RegisterOfflinePageBridge(JNIEnv* env) { 538 bool RegisterOfflinePageBridge(JNIEnv* env) {
544 return RegisterNativesImpl(env); 539 return RegisterNativesImpl(env);
545 } 540 }
546 541
547 } // namespace android 542 } // namespace android
548 } // namespace offline_pages 543 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698