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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 2284933002: Remove OfflineURL from offline page (Closed)
Patch Set: Add comment per feedback Created 4 years, 2 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
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index f6b89ca7ac0df04a3eb88108497f22fdf072bc2c..ffaaf6ae21f5adf2601c570c1327c19fdc237a2e 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -783,12 +783,6 @@ jlong TabAndroid::GetBookmarkId(JNIEnv* env,
web_contents()->GetURL());
Profile* profile = GetProfile();
- // If the url points to an offline page, then we need to get its original URL.
- if (offline_pages::OfflinePageUtils::IsOfflinePage(profile, url)) {
- url = offline_pages::OfflinePageUtils::MaybeGetOnlineURLForOfflineURL(
- profile, url);
- }
-
// Get all the nodes for |url| and sort them by date added.
std::vector<const bookmarks::BookmarkNode*> nodes;
bookmarks::ManagedBookmarkService* managed =

Powered by Google App Engine
This is Rietveld 408576698