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

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

Issue 2503853004: Support getting offline pages also by original URL (Closed)
Patch Set: Make NTP redirect work per comment 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..93bd5eec9cb933afe9f52f1a7412eef5d01c1fcd 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_ALL_URLS,
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