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

Side by Side Diff: components/payments/content/payment_manifest_downloader.cc

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)
Patch Set: Address comments 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "components/payments/content/android/payment_manifest_downloader.h" 5 #include "components/payments/content/payment_manifest_downloader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "components/data_use_measurement/core/data_use_user_data.h" 14 #include "components/data_use_measurement/core/data_use_user_data.h"
15 #include "components/link_header_util/link_header_util.h" 15 #include "components/link_header_util/link_header_util.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if (source->GetResponseAsString(&content) && !content.empty()) { 111 if (source->GetResponseAsString(&content) && !content.empty()) {
112 delegate_->OnManifestDownloadSuccess(content); 112 delegate_->OnManifestDownloadSuccess(content);
113 return; 113 return;
114 } 114 }
115 } 115 }
116 116
117 delegate_->OnManifestDownloadFailure(); 117 delegate_->OnManifestDownloadFailure();
118 } 118 }
119 119
120 } // namespace payments 120 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698