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

Unified Diff: components/history/core/browser/top_sites_database.cc

Issue 896093004: Cleanup usage of history namespace in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: components/history/core/browser/top_sites_database.cc
diff --git a/components/history/core/browser/top_sites_database.cc b/components/history/core/browser/top_sites_database.cc
index 7b1cd48bb7a7f53d22611a3796634a5b0da8ff4f..ac5f71bcda1a1c40584aa5bd2303dcbc2cc253f2 100644
--- a/components/history/core/browser/top_sites_database.cc
+++ b/components/history/core/browser/top_sites_database.cc
@@ -18,6 +18,8 @@
#include "sql/transaction.h"
#include "third_party/sqlite/sqlite3.h"
+namespace history {
+
// Description of database table:
//
// thumbnails
@@ -79,7 +81,7 @@ bool InitTables(sql::Connection* db) {
}
// Encodes redirects into a string.
-std::string GetRedirects(const history::MostVisitedURL& url) {
+std::string GetRedirects(const MostVisitedURL& url) {
std::vector<std::string> redirects;
for (size_t i = 0; i < url.redirects.size(); i++)
redirects.push_back(url.redirects[i].spec());
@@ -87,7 +89,7 @@ std::string GetRedirects(const history::MostVisitedURL& url) {
}
// Decodes redirects from a string and sets them for the url.
-void SetRedirects(const std::string& redirects, history::MostVisitedURL* url) {
+void SetRedirects(const std::string& redirects, MostVisitedURL* url) {
std::vector<std::string> redirects_vector;
base::SplitStringAlongWhitespace(redirects, &redirects_vector);
for (size_t i = 0; i < redirects_vector.size(); ++i) {
@@ -346,8 +348,6 @@ void DatabaseErrorCallback(sql::Connection* db,
} // namespace
-namespace history {
-
// static
const int TopSitesDatabase::kRankOfForcedURL = -1;
« no previous file with comments | « components/history/core/browser/thumbnail_database.cc ('k') | components/history/core/browser/top_sites_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698