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

Unified Diff: Source/modules/serviceworkers/ResponseInit.h

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/modules/serviceworkers/RequestInit.h ('k') | Source/modules/webmidi/MIDIOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ResponseInit.h
diff --git a/Source/modules/serviceworkers/ResponseInit.h b/Source/modules/serviceworkers/ResponseInit.h
index 7cef14212341bbc2644567b4dc15f678ddb9664c..73bf03a924f9487c06e51a1f100dab8508b4fef5 100644
--- a/Source/modules/serviceworkers/ResponseInit.h
+++ b/Source/modules/serviceworkers/ResponseInit.h
@@ -21,12 +21,12 @@ struct ResponseInit {
: status(200)
, statusText("OK")
{
- options.get("status", status);
+ DictionaryHelper::get(options, "status", status);
// FIXME: Spec uses ByteString for statusText. http://crbug.com/347426
- options.get("statusText", statusText);
- options.get("headers", headers);
+ DictionaryHelper::get(options, "statusText", statusText);
+ DictionaryHelper::get(options, "headers", headers);
if (!headers) {
- options.get("headers", headersDictionary);
+ DictionaryHelper::get(options, "headers", headersDictionary);
}
}
« no previous file with comments | « Source/modules/serviceworkers/RequestInit.h ('k') | Source/modules/webmidi/MIDIOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698