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

Unified Diff: components/test_runner/test_runner.cc

Issue 1807643002: Make test_runner::AppBannerClient an internal detail of components/test_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 9 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 | « components/test_runner/app_banner_client.h ('k') | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 3b5bc578e6d2d4164abc4e3cd19c21c4cb6bd123..acc03f7772f10f3869c49953ff94a9ec858fb74f 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -14,6 +14,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
+#include "components/test_runner/app_banner_client.h"
#include "components/test_runner/mock_credential_manager_client.h"
#include "components/test_runner/mock_web_speech_recognizer.h"
#include "components/test_runner/test_interfaces.h"
@@ -1551,7 +1552,7 @@ void TestRunnerBindings::ResolveBeforeInstallPromptPromise(
if (!runner_)
return;
- return runner_->ResolveBeforeInstallPromptPromise(request_id, platform);
+ runner_->ResolveBeforeInstallPromptPromise(request_id, platform);
}
std::string TestRunnerBindings::PlatformName() {
@@ -2934,7 +2935,7 @@ void TestRunner::DispatchBeforeInstallPromptEvent(
void TestRunner::ResolveBeforeInstallPromptPromise(
int request_id,
const std::string& platform) {
- delegate_->ResolveBeforeInstallPromptPromise(request_id, platform);
+ test_interfaces_->GetAppBannerClient()->ResolvePromise(request_id, platform);
}
void TestRunner::SetPOSIXLocale(const std::string& locale) {
« no previous file with comments | « components/test_runner/app_banner_client.h ('k') | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698