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

Unified Diff: chrome/browser/extensions/api/top_sites/top_sites_api.cc

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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: chrome/browser/extensions/api/top_sites/top_sites_api.cc
===================================================================
--- chrome/browser/extensions/api/top_sites/top_sites_api.cc (revision 181773)
+++ chrome/browser/extensions/api/top_sites/top_sites_api.cc (working copy)
@@ -12,23 +12,23 @@
namespace extensions {
-GetTopSitesFunction::GetTopSitesFunction()
+TopSitesGetFunction::TopSitesGetFunction()
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {}
-GetTopSitesFunction::~GetTopSitesFunction() {}
+TopSitesGetFunction::~TopSitesGetFunction() {}
-bool GetTopSitesFunction::RunImpl() {
+bool TopSitesGetFunction::RunImpl() {
history::TopSites* ts = profile()->GetTopSites();
if (!ts)
return false;
ts->GetMostVisitedURLs(
- base::Bind(&GetTopSitesFunction::OnMostVisitedURLsAvailable,
+ base::Bind(&TopSitesGetFunction::OnMostVisitedURLsAvailable,
weak_ptr_factory_.GetWeakPtr()));
return true;
}
-void GetTopSitesFunction::OnMostVisitedURLsAvailable(
+void TopSitesGetFunction::OnMostVisitedURLsAvailable(
const history::MostVisitedURLList& data) {
scoped_ptr<base::ListValue> pages_value(new ListValue);
for (size_t i = 0; i < data.size(); i++) {
« no previous file with comments | « chrome/browser/extensions/api/top_sites/top_sites_api.h ('k') | chrome/browser/extensions/api/top_sites/top_sites_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698