Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
index 33eedbca12924635b2e1ed434dca00edcec46585..2286f262a651035f5f74d58268113fec381150bf 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
@@ -12,6 +12,7 @@ |
#include "base/i18n/rtl.h" |
#include "base/lazy_instance.h" |
#include "base/string_number_conversions.h" |
+#include "base/string_piece.h" |
#include "base/stringprintf.h" |
#include "base/utf_string_conversions.h" |
#include "base/values.h" |
@@ -39,6 +40,7 @@ |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/resource/resource_bundle.h" |
+using base::StringPiece; |
erikwright (departed)
2011/12/14 19:09:58
Remove 'using' for consistency with cbentzel's com
|
using content::BrowserThread; |
// For malware interstitial pages, we link the problematic URL to Google's |
@@ -466,8 +468,9 @@ void SafeBrowsingBlockingPage::CommandReceived(const std::string& cmd) { |
size_t colon_index = command.find(':'); |
if (colon_index != std::string::npos) { |
DCHECK(colon_index < command.size() - 1); |
- bool result = base::StringToInt(command.begin() + colon_index + 1, |
- command.end(), |
+ bool result = base::StringToInt(StringPiece(command.begin() + |
+ colon_index + 1, |
+ command.end()), |
&element_index); |
command = command.substr(0, colon_index); |
DCHECK(result); |