| Index: athena/content/content_activity_factory.cc
|
| diff --git a/athena/content/content_activity_factory.cc b/athena/content/content_activity_factory.cc
|
| index ab6ecf712b5142faeeccaa2248dfa8181284bdfa..9486d1fef32bdc501cb5b84a344d78c081f188cb 100644
|
| --- a/athena/content/content_activity_factory.cc
|
| +++ b/athena/content/content_activity_factory.cc
|
| @@ -5,8 +5,6 @@
|
| #include "athena/content/public/content_activity_factory.h"
|
|
|
| #include "athena/content/web_activity.h"
|
| -#include "content/public/browser/web_contents.h"
|
| -#include "url/gurl.h"
|
|
|
| namespace athena {
|
|
|
| @@ -18,16 +16,7 @@ ContentActivityFactory::~ContentActivityFactory() {}
|
| Activity* ContentActivityFactory::CreateWebActivity(
|
| content::BrowserContext* browser_context,
|
| const GURL& url) {
|
| - content::WebContents::CreateParams params(browser_context);
|
| - content::WebContents* contents = content::WebContents::Create(params);
|
| - contents->GetController().LoadURL(url,
|
| - content::Referrer(),
|
| - content::PAGE_TRANSITION_TYPED,
|
| - std::string());
|
| - WebActivity* activity = new WebActivity(contents);
|
| - // TODO(mukai): it might be better to move Focus to another place.
|
| - contents->Focus();
|
| - return activity;
|
| + return new WebActivity(browser_context, url);
|
| }
|
|
|
| } // namespace athena
|
|
|