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

Unified Diff: chrome/browser/history/history_backend.cc

Issue 722723005: Move constants used by history component to history namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build failures Created 6 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
Index: chrome/browser/history/history_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index 82a542a8768c45fb2269c07e1898697d717052b7..9fb30e40a8331ca11e7c71c05f71bf94ffc72e3c 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -40,6 +40,7 @@
#include "components/favicon_base/select_favicon_frames.h"
#include "components/history/core/browser/history_backend_observer.h"
#include "components/history/core/browser/history_client.h"
+#include "components/history/core/browser/history_constants.h"
#include "components/history/core/browser/keyword_search_term.h"
#include "components/history/core/browser/page_usage_data.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
@@ -262,20 +263,20 @@ void HistoryBackend::ClearCachedDataForContextID(ContextID context_id) {
}
base::FilePath HistoryBackend::GetThumbnailFileName() const {
- return history_dir_.Append(chrome::kThumbnailsFilename);
+ return history_dir_.Append(history::kThumbnailsFilename);
}
base::FilePath HistoryBackend::GetFaviconsFileName() const {
- return history_dir_.Append(chrome::kFaviconsFilename);
+ return history_dir_.Append(history::kFaviconsFilename);
}
base::FilePath HistoryBackend::GetArchivedFileName() const {
- return history_dir_.Append(chrome::kArchivedHistoryFilename);
+ return history_dir_.Append(history::kArchivedHistoryFilename);
}
#if defined(OS_ANDROID)
base::FilePath HistoryBackend::GetAndroidCacheFileName() const {
- return history_dir_.Append(chrome::kAndroidCacheFilename);
+ return history_dir_.Append(history::kAndroidCacheFilename);
}
#endif
@@ -588,7 +589,7 @@ void HistoryBackend::InitImpl(const std::string& languages) {
TimeTicks beginning_time = TimeTicks::Now();
// Compute the file names.
- base::FilePath history_name = history_dir_.Append(chrome::kHistoryFilename);
+ base::FilePath history_name = history_dir_.Append(history::kHistoryFilename);
base::FilePath thumbnail_name = GetFaviconsFileName();
base::FilePath archived_name = GetArchivedFileName();
« no previous file with comments | « chrome/browser/history/android/visit_sql_handler_unittest.cc ('k') | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698