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

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

Issue 2641973003: Implement server-suggested update check backoff (Closed)
Patch Set: 2 Created 3 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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool success,
67 const std::string& webapk_package_name) { 67 const std::string& webapk_package_name,
68 finish_callback.Run(success, webapk_package_name); 68 bool less_updates) {
dominickn 2017/02/14 04:13:34 relax_updates
Xi Han 2017/02/14 22:25:47 Done.
69 finish_callback.Run(success, webapk_package_name, less_updates);
69 installs_.erase(web_manifest_url); 70 installs_.erase(web_manifest_url);
70 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698