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

Unified Diff: athena/main/athena_shell.cc

Issue 487843003: ExtensionDelegate to abstract extension implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 6 years, 4 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/main/athena_main.gyp ('k') | athena/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/athena_shell.cc
diff --git a/athena/main/athena_shell.cc b/athena/main/athena_shell.cc
deleted file mode 100644
index b4dd4a40c7239c29da33578d7c20eb9078c3cee1..0000000000000000000000000000000000000000
--- a/athena/main/athena_shell.cc
+++ /dev/null
@@ -1,62 +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/activity/public/activity_factory.h"
-#include "athena/activity/public/activity_manager.h"
-#include "athena/test/athena_test_helper.h"
-#include "base/at_exit.h"
-#include "base/base_paths.h"
-#include "base/command_line.h"
-#include "base/i18n/icu_util.h"
-#include "base/message_loop/message_loop.h"
-#include "base/path_service.h"
-#include "base/run_loop.h"
-#include "ui/aura/window_tree_host.h"
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/compositor/test/context_factories_for_test.h"
-#include "ui/gl/gl_surface.h"
-
-class UIShell {
- public:
- explicit UIShell(base::MessageLoopForUI* message_loop)
- : athena_helper_(message_loop) {
- const bool enable_pixel_output = true;
- ui::ContextFactory* factory =
- ui::InitializeContextFactoryForTests(enable_pixel_output);
- athena_helper_.SetUp(factory);
- athena_helper_.host()->Show();
-
- InitSampleActivities();
- }
-
- void InitSampleActivities() {
- athena::ActivityManager::Get()->AddActivity(
- athena::ActivityFactory::Get()->CreateWebActivity(
- NULL, GURL("http://www.google.com/")));
- }
-
- private:
- athena::test::AthenaTestHelper athena_helper_;
-
- DISALLOW_COPY_AND_ASSIGN(UIShell);
-};
-
-int main(int argc, const char **argv) {
- setlocale(LC_ALL, "");
-
- base::AtExitManager exit_manager;
- base::CommandLine::Init(argc, argv);
- base::i18n::InitializeICU();
- gfx::GLSurface::InitializeOneOffForTests();
-
- base::FilePath test_pak_path;
- CHECK(PathService::Get(base::DIR_MODULE, &test_pak_path));
- test_pak_path = test_pak_path.AppendASCII("athena_resources.pak");
- ui::ResourceBundle::InitSharedInstanceWithPakPath(test_pak_path);
-
- base::MessageLoopForUI message_loop;
- UIShell shell(&message_loop);
- base::RunLoop run_loop;
- run_loop.Run();
-}
« no previous file with comments | « athena/main/athena_main.gyp ('k') | athena/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698