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

Unified Diff: chrome/browser/android/offline_pages/offline_page_bridge.cc

Issue 2503853004: Support getting offline pages also by original URL (Closed)
Patch Set: Exact match original url 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_bridge.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_bridge.cc b/chrome/browser/android/offline_pages/offline_page_bridge.cc
index 121ea10269cd37c2041289cd3f243d8c9efaca53..fc84b8f82755dbba215f609768904339419b8017 100644
--- a/chrome/browser/android/offline_pages/offline_page_bridge.cc
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.cc
@@ -408,9 +408,10 @@ void OfflinePageBridge::SelectPageForOnlineUrl(
ScopedJavaGlobalRef<jobject> j_callback_ref;
j_callback_ref.Reset(env, j_callback_obj);
- OfflinePageUtils::SelectPageForOnlineURL(
+ OfflinePageUtils::SelectPageForURL(
browser_context_,
GURL(ConvertJavaStringToUTF8(env, j_online_url)),
+ OfflinePageModel::URLSearchMode::SEARCH_BY_FINAL_URL_ONLY,
vitaliii 2016/11/17 18:41:11 If you replace this with SEARCH_BY_ALL_URLS, then
jianli 2016/11/17 20:59:25 Done.
tab_id,
base::Bind(&SingleOfflinePageItemCallback, j_callback_ref));
}
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698