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

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

Issue 1977503003: [Offline pages] Removes the functionality to get bookmark ID from offline URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmark-star
Patch Set: Created 4 years, 7 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/offline_pages/offline_page_utils.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_utils.cc b/chrome/browser/android/offline_pages/offline_page_utils.cc
index c15d2ba3079c60ba7137be12538b3ef6cb65a65a..e53d52440a79732ef9929bf96a6737f86c1aca09 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.cc
+++ b/chrome/browser/android/offline_pages/offline_page_utils.cc
@@ -94,26 +94,6 @@ GURL OfflinePageUtils::GetOnlineURLForOfflineURL(
}
// static
-int64_t OfflinePageUtils::GetBookmarkIdForOfflineURL(
- content::BrowserContext* browser_context,
- const GURL& offline_url) {
- const OfflinePageItem* offline_page =
- GetOfflinePageForOfflineURL(browser_context, offline_url);
- if (!offline_page)
- return -1;
-
- if (offline_page->client_id.name_space != offline_pages::kBookmarkNamespace) {
- return -1;
- }
-
- int64_t result;
- if (base::StringToInt64(offline_page->client_id.id, &result)) {
- return result;
- }
- return -1;
-}
-
-// static
bool OfflinePageUtils::IsOfflinePage(content::BrowserContext* browser_context,
const GURL& offline_url) {
return GetOfflinePageForOfflineURL(browser_context, offline_url) != nullptr;

Powered by Google App Engine
This is Rietveld 408576698