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

Unified Diff: athena/extensions/chrome/extensions_delegate_impl.cc

Issue 596493002: Add actiivity in factory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/home/home_card_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/chrome/extensions_delegate_impl.cc
diff --git a/athena/extensions/chrome/extensions_delegate_impl.cc b/athena/extensions/chrome/extensions_delegate_impl.cc
index ca3646f19de6ed67849042d486e366a0bf2b7b4a..0fbb129a2decb7c58738844fbab17bd95e3dbba0 100644
--- a/athena/extensions/chrome/extensions_delegate_impl.cc
+++ b/athena/extensions/chrome/extensions_delegate_impl.cc
@@ -5,7 +5,6 @@
#include "athena/extensions/public/extensions_delegate.h"
#include "athena/activity/public/activity_factory.h"
-#include "athena/activity/public/activity_manager.h"
#include "athena/extensions/chrome/athena_chrome_app_window_client.h"
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
@@ -97,9 +96,8 @@ class ChromeExtensionsDelegate : public ExtensionsDelegate {
DCHECK(!url_input.is_empty() || extension);
GURL url = UrlForExtension(extension, url_input);
- athena::ActivityManager::Get()->AddActivity(
- athena::ActivityFactory::Get()->CreateWebActivity(
- GetBrowserContext(), base::UTF8ToUTF16(extension->name()), url));
+ athena::ActivityFactory::Get()->CreateWebActivity(
+ GetBrowserContext(), base::UTF8ToUTF16(extension->name()), url);
}
// ExtensionService for the browser context this is created for.
« no previous file with comments | « athena/extensions/athena_app_delegate_base.cc ('k') | athena/home/home_card_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698