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

Unified Diff: mojo/runner/android/ui_application_loader_android.cc

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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 | « mojo/runner/android/ui_application_loader_android.h ('k') | mojo/runner/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/android/ui_application_loader_android.cc
diff --git a/mojo/runner/android/ui_application_loader_android.cc b/mojo/runner/android/ui_application_loader_android.cc
deleted file mode 100644
index 01c5749cec186e514841f6163cdb94df058bd958..0000000000000000000000000000000000000000
--- a/mojo/runner/android/ui_application_loader_android.cc
+++ /dev/null
@@ -1,49 +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 "mojo/runner/android/ui_application_loader_android.h"
-
-#include <utility>
-
-#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
-#include "mojo/shell/application_manager.h"
-
-namespace mojo {
-namespace runner {
-
-UIApplicationLoader::UIApplicationLoader(
- scoped_ptr<ApplicationLoader> real_loader,
- base::MessageLoop* ui_message_loop)
- : loader_(std::move(real_loader)), ui_message_loop_(ui_message_loop) {}
-
-UIApplicationLoader::~UIApplicationLoader() {
- ui_message_loop_->PostTask(
- FROM_HERE, base::Bind(&UIApplicationLoader::ShutdownOnUIThread,
- base::Unretained(this)));
-}
-
-void UIApplicationLoader::Load(
- const GURL& url,
- InterfaceRequest<Application> application_request) {
- DCHECK(application_request.is_pending());
- ui_message_loop_->PostTask(
- FROM_HERE,
- base::Bind(&UIApplicationLoader::LoadOnUIThread, base::Unretained(this),
- url, base::Passed(&application_request)));
-}
-
-void UIApplicationLoader::LoadOnUIThread(
- const GURL& url,
- InterfaceRequest<Application> application_request) {
- loader_->Load(url, std::move(application_request));
-}
-
-void UIApplicationLoader::ShutdownOnUIThread() {
- // Destroy |loader_| on the thread it's actually used on.
- loader_.reset();
-}
-
-} // namespace runner
-} // namespace mojo
« no previous file with comments | « mojo/runner/android/ui_application_loader_android.h ('k') | mojo/runner/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698