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

Side by Side Diff: third_party/WebKit/Source/core/loader/FormSubmission.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 String FormSubmission::Attributes::methodString(SubmitMethod method) { 122 String FormSubmission::Attributes::methodString(SubmitMethod method) {
123 switch (method) { 123 switch (method) {
124 case GetMethod: 124 case GetMethod:
125 return "get"; 125 return "get";
126 case PostMethod: 126 case PostMethod:
127 return "post"; 127 return "post";
128 case DialogMethod: 128 case DialogMethod:
129 return "dialog"; 129 return "dialog";
130 } 130 }
131 NOTREACHED(); 131 NOTREACHED();
132 return emptyString(); 132 return emptyString;
133 } 133 }
134 134
135 void FormSubmission::Attributes::copyFrom(const Attributes& other) { 135 void FormSubmission::Attributes::copyFrom(const Attributes& other) {
136 m_method = other.m_method; 136 m_method = other.m_method;
137 m_isMultiPartForm = other.m_isMultiPartForm; 137 m_isMultiPartForm = other.m_isMultiPartForm;
138 138
139 m_action = other.m_action; 139 m_action = other.m_action;
140 m_target = other.m_target; 140 m_target = other.m_target;
141 m_encodingType = other.m_encodingType; 141 m_encodingType = other.m_encodingType;
142 m_acceptCharset = other.m_acceptCharset; 142 m_acceptCharset = other.m_acceptCharset;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 frameRequest.resourceRequest().setURL(requestURL()); 307 frameRequest.resourceRequest().setURL(requestURL());
308 308
309 frameRequest.setTriggeringEvent(m_event); 309 frameRequest.setTriggeringEvent(m_event);
310 frameRequest.setForm(m_form); 310 frameRequest.setForm(m_form);
311 311
312 return frameRequest; 312 return frameRequest;
313 } 313 }
314 314
315 } // namespace blink 315 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698