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

Unified Diff: athena/content/shell/shell_app_activity.cc

Issue 587953002: [Athena: Cleanup] consolidate ChromeAppActivity and ShellAppActivity (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/content/shell/shell_app_activity.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/shell/shell_app_activity.cc
diff --git a/athena/content/shell/shell_app_activity.cc b/athena/content/shell/shell_app_activity.cc
deleted file mode 100644
index cb008e0003621f5079eceace6429b6e8c3ba431d..0000000000000000000000000000000000000000
--- a/athena/content/shell/shell_app_activity.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "athena/content/shell/shell_app_activity.h"
-
-#include "content/public/browser/web_contents.h"
-#include "extensions/browser/app_window/app_window.h"
-#include "extensions/browser/app_window/native_app_window.h"
-#include "ui/views/controls/webview/webview.h"
-
-namespace athena {
-
-ShellAppActivity::ShellAppActivity(extensions::AppWindow* app_window)
- : AppActivity(app_window->extension_id()), app_window_(app_window) {
- DCHECK(app_window_);
-}
-
-ShellAppActivity::~ShellAppActivity() {
- app_window_->GetBaseWindow()->Close(); // Deletes |app_window_|.
-}
-
-views::Widget* ShellAppActivity::CreateWidget() {
- return NULL; // Use default widget.
-}
-
-views::WebView* ShellAppActivity::GetWebView() {
- content::WebContents* web_contents = app_window_->web_contents();
- views::WebView* web_view =
- new views::WebView(web_contents->GetBrowserContext());
- web_view->SetWebContents(web_contents);
- Observe(web_contents);
- return web_view;
-}
-
-} // namespace athena
« no previous file with comments | « athena/content/shell/shell_app_activity.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698