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

Unified Diff: athena/content/content_app_model_builder.cc

Issue 470713002: Reorder the app order. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/content_app_model_builder.cc
diff --git a/athena/content/content_app_model_builder.cc b/athena/content/content_app_model_builder.cc
index d8a361615bb02b206970f497a5e5eaaf79948c17..a84d3c2901f44ca753cf220dbd584c2b77ceb640 100644
--- a/athena/content/content_app_model_builder.cc
+++ b/athena/content/content_app_model_builder.cc
@@ -107,6 +107,13 @@ ContentAppModelBuilder::~ContentAppModelBuilder() {
}
void ContentAppModelBuilder::PopulateApps(app_list::AppListModel* model) {
+ ShellExtensionSystem* extension_system =
+ GetShellExtensionSystem(browser_context_);
+ if (extension_system && extension_system->extension()) {
+ model->AddItem(scoped_ptr<app_list::AppListItem>(
+ new AppItem(extension_system->extension(), browser_context_)));
+ }
+
model->AddItem(scoped_ptr<app_list::AppListItem>(new DummyItem(
"mail", GURL("http://gmail.com/"), SK_ColorRED, browser_context_)));
model->AddItem(scoped_ptr<app_list::AppListItem>(new DummyItem(
@@ -120,13 +127,6 @@ void ContentAppModelBuilder::PopulateApps(app_list::AppListModel* model) {
model->AddItem(scoped_ptr<app_list::AppListItem>(new DummyItem(
"contact", GURL("https://www.google.com/contacts"),
SK_ColorCYAN, browser_context_)));
-
- ShellExtensionSystem* extension_system =
- GetShellExtensionSystem(browser_context_);
- if (extension_system && extension_system->extension()) {
- model->AddItem(scoped_ptr<app_list::AppListItem>(
- new AppItem(extension_system->extension(), browser_context_)));
- }
}
} // namespace athena
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698