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

Unified Diff: chrome/browser/android/ntp/most_visited_sites.h

Issue 2000653002: Replace the usage of SkBitmap with gfx::Image in the suggestion service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: accidental up load. This patchset was not committed with this CL 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
Index: chrome/browser/android/ntp/most_visited_sites.h
diff --git a/components/ntp_tiles/most_visited_sites.h b/chrome/browser/android/ntp/most_visited_sites.h
similarity index 95%
copy from components/ntp_tiles/most_visited_sites.h
copy to chrome/browser/android/ntp/most_visited_sites.h
index 18e3d6fe1748db20468264f8ba4097c5f65e6502..d6bdb125b9a2220fd94a1a060fd519f6f108aa73 100644
--- a/components/ntp_tiles/most_visited_sites.h
+++ b/chrome/browser/android/ntp/most_visited_sites.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
-#define COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
+#ifndef CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_
+#define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_
#include <stddef.h>
@@ -16,9 +16,9 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/scoped_observer.h"
+#include "chrome/browser/android/ntp/popular_sites.h"
#include "components/history/core/browser/history_types.h"
#include "components/history/core/browser/top_sites_observer.h"
-#include "components/ntp_tiles/popular_sites.h"
#include "components/suggestions/proto/suggestions.pb.h"
#include "components/suggestions/suggestions_service.h"
#include "url/gurl.h"
@@ -128,8 +128,7 @@ class MostVisitedSites : public history::TopSitesObserver,
DISALLOW_COPY_AND_ASSIGN(Suggestion);
};
- MostVisitedSites(scoped_refptr<base::SequencedWorkerPool> blocking_pool,
- PrefService* prefs,
+ MostVisitedSites(PrefService* prefs,
const TemplateURLService* template_url_service,
variations::VariationsService* variations_service,
net::URLRequestContextGetter* download_context,
@@ -276,14 +275,10 @@ class MostVisitedSites : public history::TopSitesObserver,
SuggestionsVector current_suggestions_;
- base::ThreadChecker thread_checker_;
- scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
- scoped_refptr<base::TaskRunner> blocking_runner_;
-
// For callbacks may be run after destruction.
base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(MostVisitedSites);
};
-#endif // COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_
+#endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_H_

Powered by Google App Engine
This is Rietveld 408576698