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

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: s/snippets/tiles/ 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
« components/ntp_tiles/DEPS ('K') | « 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 0c065c033714494d6601edc00b326ebb34ea42b9..7f23b1134c3c840dfaf61ac9f3ad723b8fb42dd8 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>
@@ -18,7 +18,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"
@@ -165,12 +164,6 @@ std::unique_ptr<std::vector<PopularSites::Site>> ParseJson(
} // 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,
« components/ntp_tiles/DEPS ('K') | « components/ntp_tiles/popular_sites.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698