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

Unified Diff: content/browser/transition_request_manager.cc

Issue 598323002: Use of base::StringPairs appropriately in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving the scoping error Created 6 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
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/common/websocket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/transition_request_manager.cc
diff --git a/content/browser/transition_request_manager.cc b/content/browser/transition_request_manager.cc
index 680c2d4c4eb66eb810f3889bb14288aa825d757a..e2c83ea0dea38f65020276cf83cb892262f7577b 100644
--- a/content/browser/transition_request_manager.cc
+++ b/content/browser/transition_request_manager.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/memory/singleton.h"
#include "base/metrics/field_trial.h"
+#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
@@ -23,7 +24,7 @@ bool EnumerateLinkHeaders(
void** iter,
const std::string& rel,
std::string* url,
- std::vector<std::pair<std::string, std::string> >* attributes) {
+ base::StringPairs* attributes) {
std::string header_body;
bool rel_matched = false;
while (!rel_matched && headers->EnumerateHeader(iter, "link", &header_body)) {
@@ -89,7 +90,7 @@ void TransitionRequestManager::ParseTransitionStylesheetsFromHeaders(
return;
std::string transition_stylesheet;
- std::vector<std::pair<std::string, std::string> > attributes;
+ base::StringPairs attributes;
void* header_iter = NULL;
while (EnumerateLinkHeaders(headers,
&header_iter,
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/common/websocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698