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

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

Issue 2338253002: Fix the bug that "Open" button doesn't show after WebAPK installation is complete on Jellybean. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_installer.h" 5 #include "chrome/browser/android/webapk/webapk_installer.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/path_utils.h" 10 #include "base/android/path_utils.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 if (!success) 411 if (!success)
412 OnFailure(); 412 OnFailure();
413 } 413 }
414 414
415 void WebApkInstaller::OnTimeout() { 415 void WebApkInstaller::OnTimeout() {
416 OnFailure(); 416 OnFailure();
417 } 417 }
418 418
419 void WebApkInstaller::OnSuccess() { 419 void WebApkInstaller::OnSuccess() {
420 FinishCallback callback = finish_callback_; 420 FinishCallback callback = finish_callback_;
421 std::string webapk_package = webapk_package_;
421 delete this; 422 delete this;
422 callback.Run(true, webapk_package_); 423 callback.Run(true, webapk_package);
423 } 424 }
424 425
425 void WebApkInstaller::OnFailure() { 426 void WebApkInstaller::OnFailure() {
426 FinishCallback callback = finish_callback_; 427 FinishCallback callback = finish_callback_;
427 delete this; 428 delete this;
428 callback.Run(false, ""); 429 callback.Run(false, "");
429 } 430 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698