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

Unified Diff: Source/web/WebAutocompleteParams.cpp

Issue 214823008: Add transaction detail params to requestAutocomplete(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sync Created 6 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/web.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAutocompleteParams.cpp
diff --git a/Source/web/WebHeap.cpp b/Source/web/WebAutocompleteParams.cpp
similarity index 79%
copy from Source/web/WebHeap.cpp
copy to Source/web/WebAutocompleteParams.cpp
index a2d67614f34542c1c709c4051ee50fab7dc27298..ec278dcb0f919bc66c4122b786ee5b5426da8c5e 100644
--- a/Source/web/WebHeap.cpp
+++ b/Source/web/WebAutocompleteParams.cpp
@@ -29,30 +29,22 @@
*/
#include "config.h"
-#include "WebHeap.h"
+#include "WebAutocompleteParams.h"
-#include "platform/heap/ThreadState.h"
+#include "bindings/v8/Dictionary.h"
+#include "public/platform/WebString.h"
+#include "wtf/text/WTFString.h"
namespace blink {
-void WebHeap::attachThread()
+WebAutocompleteParams::WebAutocompleteParams(const WebCore::Dictionary& details)
+ : transactionAmount(0)
{
- WebCore::ThreadState::attach();
-}
-
-void WebHeap::detachThread()
-{
- WebCore::ThreadState::detach();
-}
+ details.get("transactionAmount", transactionAmount);
-WebHeap::SafePointScope::SafePointScope()
-{
- WebCore::ThreadState::current()->enterSafePointWithPointers(this);
-}
-
-WebHeap::SafePointScope::~SafePointScope()
-{
- WebCore::ThreadState::current()->leaveSafePoint();
+ String currency;
+ if (details.get("transactionCurrency", currency))
+ transactionCurrency = WebString(currency);
}
} // namespace blink
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698