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

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

Issue 11522007: Move TopSites api from c/b/history to c/b/e/api (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_ungoop_history
Patch Set: Created 8 years 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
diff --git a/chrome/browser/history/top_sites_extension_api.cc b/chrome/browser/extensions/api/top_sites/top_sites_api.cc
similarity index 92%
rename from chrome/browser/history/top_sites_extension_api.cc
rename to chrome/browser/extensions/api/top_sites/top_sites_api.cc
index 4bcaa5b1e6458725f668e14637d3e8f73b9a5358..40ee0e949814a2f7f2fb6e717dc702cecba6d9c2 100644
--- a/chrome/browser/history/top_sites_extension_api.cc
+++ b/chrome/browser/extensions/api/top_sites/top_sites_api.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/history/top_sites_extension_api.h"
+#include "chrome/browser/extensions/api/top_sites/top_sites_api.h"
#include "base/bind.h"
#include "base/values.h"
@@ -10,6 +10,8 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
+namespace extensions {
+
GetTopSitesFunction::GetTopSitesFunction()
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {}
@@ -45,3 +47,5 @@ void GetTopSitesFunction::OnMostVisitedURLsAvailable(
SetResult(pages_value.release());
SendResponse(true);
}
+
+} // namespace extensions
« 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