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

Unified Diff: extensions/browser/api/web_request/form_data_parser.cc

Issue 2336843002: Decompose //extensions/browser/BUILD.gn (Closed)
Patch Set: unending win fixes Created 4 years, 3 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: extensions/browser/api/web_request/form_data_parser.cc
diff --git a/extensions/browser/api/web_request/form_data_parser.cc b/extensions/browser/api/web_request/form_data_parser.cc
index 6966e431b82cd8d7158911af59cad9cd1261befc..383fbdf5233f982151625122c263bb7c5ff95a41 100644
--- a/extensions/browser/api/web_request/form_data_parser.cc
+++ b/extensions/browser/api/web_request/form_data_parser.cc
@@ -397,7 +397,7 @@ bool FormDataParserUrlEncoded::GetNextNameValue(Result* result) {
bool FormDataParserUrlEncoded::SetSource(base::StringPiece source) {
if (source_set_)
return false; // We do not allow multiple sources for this parser.
- source_.set(source.data(), source.size());
+ source_.set(source.data(), static_cast<int>(source.size()));
source_set_ = true;
source_malformed_ = false;
return true;
@@ -534,7 +534,7 @@ bool FormDataParserMultipart::GetNextNameValue(Result* result) {
bool FormDataParserMultipart::SetSource(base::StringPiece source) {
if (source.data() == NULL || !source_.empty())
return false;
- source_.set(source.data(), source.size());
+ source_.set(source.data(), static_cast<int>(source.size()));
switch (state_) {
case STATE_INIT:

Powered by Google App Engine
This is Rietveld 408576698