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

Unified Diff: athena/main/placeholder.cc

Issue 596623005: Do not show the activity widget in ActivityManager::AddActivity (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 3 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 | « athena/extensions/athena_app_delegate_base.cc ('k') | athena/main/url_search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/placeholder.cc
diff --git a/athena/main/placeholder.cc b/athena/main/placeholder.cc
index 0baa542dea11b694f8232f4b7f28c6de55946627..c0d89f03566890e567c43e2bd63668e69e7ebcb3 100644
--- a/athena/main/placeholder.cc
+++ b/athena/main/placeholder.cc
@@ -4,6 +4,7 @@
#include "athena/main/placeholder.h"
+#include "athena/activity/public/activity.h"
#include "athena/activity/public/activity_factory.h"
#include "athena/resources/grit/athena_resources.h"
#include "athena/system/public/system_ui.h"
@@ -15,9 +16,11 @@ void CreateTestPages(content::BrowserContext* browser_context) {
"http://cyan.bikeshed.com", "https://news.google.com",
"http://blue.bikeshed.com", "https://www.google.com",
};
+ athena::ActivityFactory* factory = athena::ActivityFactory::Get();
for (size_t i = 0; i < arraysize(kTestURLs); ++i) {
- athena::ActivityFactory::Get()->CreateWebActivity(
+ athena::Activity* activity = factory->CreateWebActivity(
browser_context, base::string16(), GURL(kTestURLs[i]));
+ athena::Activity::Show(activity);
}
}
« no previous file with comments | « athena/extensions/athena_app_delegate_base.cc ('k') | athena/main/url_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698