summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_provider.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 18:24:34 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 18:24:34 +0000
commit2ce9c8975a27ac994c7bcf4260033f4bbc9da46a (patch)
tree599f74bf63e0b63e1112bb0ebc80bebb374584c6 /chrome/browser/autocomplete/history_provider.cc
parentfc8b5531f7e994b2016f2684a2998b5a53439916 (diff)
downloadchromium_src-2ce9c8975a27ac994c7bcf4260033f4bbc9da46a.zip
chromium_src-2ce9c8975a27ac994c7bcf4260033f4bbc9da46a.tar.gz
chromium_src-2ce9c8975a27ac994c7bcf4260033f4bbc9da46a.tar.bz2
Fix changes from r75314 to preserve the prevailing pattern of "(expected, actual)" in DCHECK_EQ/NE().
Also cleans up a couple other misc. style issues. BUG=58409 TEST=none Review URL: http://codereview.chromium.org/6578035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/history_provider.cc b/chrome/browser/autocomplete/history_provider.cc
index b44e314..d0dc207 100644
--- a/chrome/browser/autocomplete/history_provider.cc
+++ b/chrome/browser/autocomplete/history_provider.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -135,7 +135,7 @@ size_t HistoryProvider::TrimHttpPrefix(string16* url) {
return 0;
size_t scheme_pos =
url->find(ASCIIToUTF16(chrome::kHttpScheme) + char16(':'));
- DCHECK_NE(scheme_pos, string16::npos);
+ DCHECK_NE(string16::npos, scheme_pos);
// Erase scheme plus up to two slashes.
size_t prefix_end = scheme_pos + strlen(chrome::kHttpScheme) + 1;