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

Unified Diff: components/ntp_tiles/popular_sites.cc

Issue 1983063002: Move classes to //components/ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync 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 | « components/ntp_tiles/popular_sites.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_tiles/popular_sites.cc
diff --git a/chrome/browser/android/ntp/popular_sites.cc b/components/ntp_tiles/popular_sites.cc
similarity index 98%
copy from chrome/browser/android/ntp/popular_sites.cc
copy to components/ntp_tiles/popular_sites.cc
index 0adb9328d825d70a5c95e63f3122fdaa519e6a1f..2012fdbcbee91753ebba716521394cf9b048ac00 100644
--- a/chrome/browser/android/ntp/popular_sites.cc
+++ b/components/ntp_tiles/popular_sites.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/android/ntp/popular_sites.h"
+#include "components/ntp_tiles/popular_sites.h"
#include <stddef.h>
@@ -19,7 +19,6 @@
#include "base/task_runner_util.h"
#include "base/time/time.h"
#include "base/values.h"
-#include "chrome/common/chrome_paths.h"
#include "components/google/core/browser/google_util.h"
#include "components/ntp_tiles/pref_names.h"
#include "components/ntp_tiles/switches.h"
@@ -138,12 +137,6 @@ bool WriteJsonToFile(const base::FilePath& local_path,
} // namespace
-base::FilePath ChromePopularSites::GetDirectory() {
- base::FilePath dir;
- PathService::Get(chrome::DIR_USER_DATA, &dir);
- return dir; // empty if PathService::Get() failed.
-}
-
PopularSites::Site::Site(const base::string16& title,
const GURL& url,
const GURL& favicon_url,
« no previous file with comments | « components/ntp_tiles/popular_sites.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698