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

Side by Side Diff: chrome/browser/android/webapk/webapk_install_service.cc

Issue 2733543002: [Android:WebAPK] Don't add webapp to homescreen if WebAPK install times out part 1/3 (Closed)
Patch Set: Merge branch 'start' into refactor_shortcut_helper3 Created 3 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/android/webapk/webapk_install_service.h ('k') | chrome/browser/android/webapk/webapk_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698