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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentManager.cpp

Issue 2790013002: PaymentHandler: Implement set/get methods in PaymentInstruments (blink) (Closed)
Patch Set: ss Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/payments/PaymentManager.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentManager.cpp b/third_party/WebKit/Source/modules/payments/PaymentManager.cpp
index 87e75cb7d750e1ae027e67ed384dbc34beda9562..6e2f329c33e6cf0dfc65953ce1d840ddf220b190 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentManager.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentManager.cpp
@@ -130,8 +130,9 @@ ScriptPromise PaymentManager::getManifest(ScriptState* script_state) {
}
PaymentInstruments* PaymentManager::instruments() {
- if (!instruments_)
- instruments_ = new PaymentInstruments();
+ if (!instruments_) {
please use gerrit instead 2017/04/12 19:02:37 {} is not necessary.
+ instruments_ = new PaymentInstruments(manager_);
please use gerrit instead 2017/04/12 19:02:37 The order of deletion in this object is manager_,
haraken 2017/04/13 01:32:31 I don't fully understand what you mean, but a dest
zino 2017/04/15 03:30:10 Done. Anyway I modified order of declaration in h
+ }
return instruments_;
}

Powered by Google App Engine
This is Rietveld 408576698