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

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

Issue 2083653008: Temporarily remove "last_n" from availability searches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gNit. 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 | « no previous file | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/recent_tab_helper.cc
diff --git a/chrome/browser/android/offline_pages/recent_tab_helper.cc b/chrome/browser/android/offline_pages/recent_tab_helper.cc
index b002ea80d77bf69f619232071ca070b584a9c914..926e0099a23b2fef0d9cd7c6d46f581cbc43a9a4 100644
--- a/chrome/browser/android/offline_pages/recent_tab_helper.cc
+++ b/chrome/browser/android/offline_pages/recent_tab_helper.cc
@@ -16,6 +16,7 @@
#include "base/time/time.h"
#include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h"
#include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
+#include "components/offline_pages/client_namespace_constants.h"
#include "components/offline_pages/offline_page_item.h"
#include "components/offline_pages/offline_page_model.h"
#include "content/public/browser/browser_context.h"
@@ -26,7 +27,6 @@
DEFINE_WEB_CONTENTS_USER_DATA_KEY(offline_pages::RecentTabHelper);
namespace {
-const char* kClientNamespace = "last_n";
// Max number of pages to keep. The oldest pages that are over this count are
// deleted before the next one is saved.
@@ -195,7 +195,7 @@ bool RecentTabHelper::IsSamePage() const {
}
ClientId RecentTabHelper::client_id() const {
- return ClientId(kClientNamespace, "");
+ return ClientId(kLastNNamespace, "");
}
void RecentTabHelper::SetArchiveFactoryForTest(
« no previous file with comments | « no previous file | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698