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

Side by Side Diff: content/renderer/npapi/webplugin_impl.cc

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/npapi/webplugin_impl.h" 5 #include "content/renderer/npapi/webplugin_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 npp_(NULL), 540 npp_(NULL),
541 plugin_url_(params.url), 541 plugin_url_(params.url),
542 load_manually_(params.loadManually), 542 load_manually_(params.loadManually),
543 first_geometry_update_(true), 543 first_geometry_update_(true),
544 ignore_response_error_(false), 544 ignore_response_error_(false),
545 file_path_(file_path), 545 file_path_(file_path),
546 mime_type_(base::UTF16ToASCII(params.mimeType)), 546 mime_type_(base::UTF16ToASCII(params.mimeType)),
547 weak_factory_(this), 547 weak_factory_(this),
548 loader_client_(this) { 548 loader_client_(this) {
549 DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size()); 549 DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size());
550 StringToLowerASCII(&mime_type_); 550 base::StringToLowerASCII(&mime_type_);
551 551
552 for (size_t i = 0; i < params.attributeNames.size(); ++i) { 552 for (size_t i = 0; i < params.attributeNames.size(); ++i) {
553 arg_names_.push_back(params.attributeNames[i].utf8()); 553 arg_names_.push_back(params.attributeNames[i].utf8());
554 arg_values_.push_back(params.attributeValues[i].utf8()); 554 arg_values_.push_back(params.attributeValues[i].utf8());
555 } 555 }
556 556
557 // Set subresource URL for crash reporting. 557 // Set subresource URL for crash reporting.
558 base::debug::SetCrashKeyValue("subresource_url", plugin_url_.spec()); 558 base::debug::SetCrashKeyValue("subresource_url", plugin_url_.spec());
559 } 559 }
560 560
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 case PLUGIN_SRC: 1525 case PLUGIN_SRC:
1526 webframe_->setReferrerForRequest(*request, plugin_url_); 1526 webframe_->setReferrerForRequest(*request, plugin_url_);
1527 break; 1527 break;
1528 1528
1529 default: 1529 default:
1530 break; 1530 break;
1531 } 1531 }
1532 } 1532 }
1533 1533
1534 } // namespace content 1534 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/cache_util.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698