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

Unified Diff: shell/android/ui_application_loader_android.cc

Issue 930243006: Simplify the ApplicationLoader interface in preparation for changes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ptal Created 5 years, 10 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 | « shell/android/ui_application_loader_android.h ('k') | shell/application_manager/application_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/ui_application_loader_android.cc
diff --git a/shell/android/ui_application_loader_android.cc b/shell/android/ui_application_loader_android.cc
index a9eacffaa2c79e67b3b1e189de56b3d7559a6a4d..fff625198400fc78884ba62859306855e22c7625 100644
--- a/shell/android/ui_application_loader_android.cc
+++ b/shell/android/ui_application_loader_android.cc
@@ -23,15 +23,13 @@ UIApplicationLoader::~UIApplicationLoader() {
}
void UIApplicationLoader::Load(
- ApplicationManager* manager,
const GURL& url,
- InterfaceRequest<Application> application_request,
- LoadCallback callback) {
+ InterfaceRequest<Application> application_request) {
DCHECK(application_request.is_pending());
ui_message_loop_->PostTask(
FROM_HERE,
base::Bind(&UIApplicationLoader::LoadOnUIThread, base::Unretained(this),
- manager, url, base::Passed(&application_request)));
+ url, base::Passed(&application_request)));
}
void UIApplicationLoader::OnApplicationError(ApplicationManager* manager,
@@ -42,10 +40,9 @@ void UIApplicationLoader::OnApplicationError(ApplicationManager* manager,
}
void UIApplicationLoader::LoadOnUIThread(
- ApplicationManager* manager,
const GURL& url,
InterfaceRequest<Application> application_request) {
- loader_->Load(manager, url, application_request.Pass(), SimpleLoadCallback());
+ loader_->Load(url, application_request.Pass());
}
void UIApplicationLoader::OnApplicationErrorOnUIThread(
« no previous file with comments | « shell/android/ui_application_loader_android.h ('k') | shell/application_manager/application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698