Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 914983 | Differences between
and this patch

Collapse All | Expand All

(-)a/chromium/extensions/browser/api/web_request/form_data_parser.cc (-2 / +2 lines)
Lines 426-432 bool FormDataParserUrlEncoded::GetNextNameValue(Result* result) { Link Here
426
bool FormDataParserUrlEncoded::SetSource(base::StringPiece source) {
426
bool FormDataParserUrlEncoded::SetSource(base::StringPiece source) {
427
  if (source_set_)
427
  if (source_set_)
428
    return false;  // We do not allow multiple sources for this parser.
428
    return false;  // We do not allow multiple sources for this parser.
429
  source_.set(source.data(), source.size());
429
  source_ = re2::StringPiece(source.data(), source.size());
430
  source_set_ = true;
430
  source_set_ = true;
431
  source_malformed_ = false;
431
  source_malformed_ = false;
432
  return true;
432
  return true;
Lines 570-576 bool FormDataParserMultipart::GetNextNameValue(Result* result) { Link Here
570
bool FormDataParserMultipart::SetSource(base::StringPiece source) {
570
bool FormDataParserMultipart::SetSource(base::StringPiece source) {
571
  if (source.data() == nullptr || !source_.empty())
571
  if (source.data() == nullptr || !source_.empty())
572
    return false;
572
    return false;
573
  source_.set(source.data(), source.size());
573
  source_ = re2::StringPiece(source.data(), source.size());
574
574
575
  switch (state_) {
575
  switch (state_) {
576
    case STATE_INIT:
576
    case STATE_INIT:

Return to bug 914983