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: chrome/browser/android/webapk/webapk_installer_unittest.cc

Issue 2259553002: Make AppBannerInfoBar install WebAPK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
Index: chrome/browser/android/webapk/webapk_installer_unittest.cc
diff --git a/chrome/browser/android/webapk/webapk_installer_unittest.cc b/chrome/browser/android/webapk/webapk_installer_unittest.cc
index 2a2a58daae1ee83c54011df1f3e0768c302b58c4..c12f61172d7b00bd5b49b1559b48265bc8aaede2 100644
--- a/chrome/browser/android/webapk/webapk_installer_unittest.cc
+++ b/chrome/browser/android/webapk/webapk_installer_unittest.cc
@@ -94,7 +94,9 @@ class WebApkInstallerRunner {
installer->InstallAsyncWithURLRequestContextGetter(
url_request_context_getter_.get(),
- base::Bind(&WebApkInstallerRunner::OnCompleted,
+ base::Bind(&WebApkInstallerRunner::OnWebApkPackageNameAvailable,
+ base::Unretained(this),
+ &WebApkInstallerRunner::OnCompleted,
base::Unretained(this)));
Run();
}
@@ -132,6 +134,8 @@ class WebApkInstallerRunner {
bool success() { return success_; }
private:
+ void OnWebApkPackageNameAvailable(const std::string& webapk_package) {}
+
void OnCompleted(bool success) {
success_ = success;
on_completed_callback_.Run();

Powered by Google App Engine
This is Rietveld 408576698