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

Unified Diff: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc

Issue 2040573002: [Offlining] Updates the tab helper to use the async OfflinePageModel API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address jianli's nits. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
index 5c2bcf9e974b81971c14e8a9d0c9ec93545ac6e0..0615896eb51bb702791a00f4a8b5e9b870ab1db0 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
+++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
@@ -271,8 +271,9 @@ GURL AddToHomescreenDataFetcher::GetShortcutUrl(const GURL& actual_url) {
dom_distiller::url_utils::GetOriginalUrlFromDistillerUrl(actual_url);
// If URL points to an offline content, get original URL.
- GURL online_url = offline_pages::OfflinePageUtils::GetOnlineURLForOfflineURL(
- web_contents()->GetBrowserContext(), original_url);
+ GURL online_url =
+ offline_pages::OfflinePageUtils::MaybeGetOnlineURLForOfflineURL(
+ web_contents()->GetBrowserContext(), original_url);
if (online_url.is_valid())
return online_url;
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698