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

Unified Diff: athena/main/athena_main.cc

Issue 563083003: V2 app support step3: Athena's NativeAppWindow (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
Index: athena/main/athena_main.cc
diff --git a/athena/main/athena_main.cc b/athena/main/athena_main.cc
index cc2cacdadd571fbafe06b769a816085cd640e756..104b64be9448ebf9cf2bab6f8e09d0511df1d0e7 100644
--- a/athena/main/athena_main.cc
+++ b/athena/main/athena_main.cc
@@ -75,50 +75,6 @@ class AthenaDesktopController : public extensions::DesktopController {
DISALLOW_COPY_AND_ASSIGN(AthenaDesktopController);
};
-class AthenaAppsClient : public extensions::AppsClient {
- public:
- AthenaAppsClient() {}
- virtual ~AthenaAppsClient() {}
-
- // extensions::AppsClient:
- virtual std::vector<content::BrowserContext*>
- GetLoadedBrowserContexts() OVERRIDE {
- NOTIMPLEMENTED();
- return std::vector<content::BrowserContext*>();
- }
-
- virtual extensions::AppWindow* CreateAppWindow(
- content::BrowserContext* context,
- const extensions::Extension* extension) OVERRIDE {
- return new extensions::AppWindow(
- context, new extensions::ShellAppDelegate, extension);
- }
-
- virtual extensions::NativeAppWindow* CreateNativeAppWindow(
- extensions::AppWindow* window,
- const extensions::AppWindow::CreateParams& params) OVERRIDE {
- athena::ActivityManager::Get()->AddActivity(
- athena::ActivityFactory::Get()->CreateAppActivity(window, NULL));
- return new extensions::ShellNativeAppWindow(window, params);
- }
-
- virtual void IncrementKeepAliveCount() OVERRIDE {}
-
- virtual void DecrementKeepAliveCount() OVERRIDE {}
-
- virtual void OpenDevToolsWindow(content::WebContents* web_contents,
- const base::Closure& callback) OVERRIDE {
- NOTIMPLEMENTED();
- }
-
- virtual bool IsCurrentChannelOlderThanDev() OVERRIDE {
- return false;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AthenaAppsClient);
-};
-
class AthenaBrowserMainDelegate : public extensions::ShellBrowserMainDelegate {
public:
AthenaBrowserMainDelegate() {}
@@ -159,10 +115,6 @@ class AthenaBrowserMainDelegate : public extensions::ShellBrowserMainDelegate {
return new AthenaDesktopController();
}
- virtual extensions::AppsClient* CreateAppsClient() OVERRIDE {
- return new AthenaAppsClient();
- }
-
private:
DISALLOW_COPY_AND_ASSIGN(AthenaBrowserMainDelegate);
};
« no previous file with comments | « athena/extensions/shell/extensions_delegate_impl.cc ('k') | extensions/shell/browser/default_shell_browser_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698