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

Unified Diff: chrome/browser/dom_ui/options/dom_options_util.cc

Issue 6490016: DOM UI options handler cleanup: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 9 years, 10 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
Index: chrome/browser/dom_ui/options/dom_options_util.cc
diff --git a/chrome/browser/dom_ui/options/dom_options_util.cc b/chrome/browser/dom_ui/options/dom_options_util.cc
index f528a47746800761a7f1e09f29f2767eadfece11..164eceaa70da0c2667cdbe49f313d41fe647e71c 100644
--- a/chrome/browser/dom_ui/options/dom_options_util.cc
+++ b/chrome/browser/dom_ui/options/dom_options_util.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.
@@ -9,9 +9,11 @@
namespace dom_options_util {
string16 StripColon(const string16& str) {
- const string16::value_type kColon[] = {':',0};
+ const string16::value_type kColon[] = { ':', 0 };
Mike Mammarella 2011/02/11 18:38:48 Doesn't the style guide say not to use spaces afte
Evan Stade 2011/02/11 19:23:33 optional, apparently: http://google-styleguide.goo
Mike Mammarella 2011/02/11 20:56:19 OK then.
string16 result;
- RemoveChars(str, kColon, &result);
+ bool stripped = TrimString(str, kColon, &result);
+ // We shouldn't be called on strings without trailing colons.
+ DCHECK(stripped);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698