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

Unified Diff: athena/content/content_activity_factory.cc

Issue 314303004: Use webview in web activity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/content/DEPS ('k') | athena/content/web_activity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « athena/content/DEPS ('k') | athena/content/web_activity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698