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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 6297013: [NTP] Allow reordering of apps via drag and drop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 11 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/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 4651a3db7c28ff95a6513f76105b1b1f5f127b43..d0ec89bbe499b2db1e1f20832ec22dac8320cb06 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1786,6 +1786,17 @@ const Extension* ExtensionService::GetWebStoreApp() {
return GetExtensionById(extension_misc::kWebStoreAppId, false);
}
+void ExtensionService::SetAppLauncherOrder(
Aaron Boodman 2011/01/22 23:42:57 This method seems like it makes more sense directl
jstritar 2011/01/24 01:00:42 Done.
+ const std::vector<std::string>& extension_ids) {
+ for (size_t i = 0; i < extension_ids.size(); ++i)
+ extension_prefs_->SetAppLaunchIndex(extension_ids.at(i), i);
+
+ NotificationService::current()->Notify(
+ NotificationType::EXTENSION_LAUNCHER_REORDERED,
+ Source<Profile>(profile_),
+ NotificationService::NoDetails());
+}
+
const Extension* ExtensionService::GetExtensionByURL(const GURL& url) {
return url.scheme() != chrome::kExtensionScheme ? NULL :
GetExtensionById(url.host(), false);

Powered by Google App Engine
This is Rietveld 408576698