| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/webapk/webapk_install_service.h" | 5 #include "chrome/browser/android/webapk/webapk_install_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/android/shortcut_info.h" | 8 #include "chrome/browser/android/shortcut_info.h" |
| 9 #include "chrome/browser/android/webapk/webapk_install_service_factory.h" | 9 #include "chrome/browser/android/webapk/webapk_install_service_factory.h" |
| 10 #include "chrome/browser/android/webapk/webapk_installer.h" | 10 #include "chrome/browser/android/webapk/webapk_installer.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 browser_context_, shortcut_info, shortcut_icon, webapk_package, | 56 browser_context_, shortcut_info, shortcut_icon, webapk_package, |
| 57 webapk_version, icon_url_to_murmur2_hash, is_manifest_stale, | 57 webapk_version, icon_url_to_murmur2_hash, is_manifest_stale, |
| 58 base::Bind(&WebApkInstallService::OnFinishedInstall, | 58 base::Bind(&WebApkInstallService::OnFinishedInstall, |
| 59 weak_ptr_factory_.GetWeakPtr(), shortcut_info.manifest_url, | 59 weak_ptr_factory_.GetWeakPtr(), shortcut_info.manifest_url, |
| 60 finish_callback)); | 60 finish_callback)); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void WebApkInstallService::OnFinishedInstall( | 63 void WebApkInstallService::OnFinishedInstall( |
| 64 const GURL& web_manifest_url, | 64 const GURL& web_manifest_url, |
| 65 const FinishCallback& finish_callback, | 65 const FinishCallback& finish_callback, |
| 66 bool success, | 66 WebApkInstallResult result, |
| 67 bool relax_updates, | 67 bool relax_updates, |
| 68 const std::string& webapk_package_name) { | 68 const std::string& webapk_package_name) { |
| 69 finish_callback.Run(success, relax_updates, webapk_package_name); | 69 finish_callback.Run(result, relax_updates, webapk_package_name); |
| 70 installs_.erase(web_manifest_url); | 70 installs_.erase(web_manifest_url); |
| 71 } | 71 } |
| OLD | NEW |