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

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

Issue 5799001: DOMUI: Temporarily strip trailing colons from section titles until the strings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win build fix. Created 10 years 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.h
diff --git a/chrome/browser/dom_ui/options/dom_options_util.h b/chrome/browser/dom_ui/options/dom_options_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..9cbac3908846aec293a96432701a8e36fa0eb603
--- /dev/null
+++ b/chrome/browser/dom_ui/options/dom_options_util.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2010 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.
+
+#ifndef CHROME_BROWSER_DOM_UI_OPTIONS_DOM_OPTIONS_UTIL_H_
+#define CHROME_BROWSER_DOM_UI_OPTIONS_DOM_OPTIONS_UTIL_H_
+#pragma once
+
+#include "base/string16.h"
+
+namespace dom_options_util {
+
+// Strips the trailing colon from a string. Used to remove the colon from
+// section titles on platforms that append it.
+// TODO(jhawkins): Remove this once the platform-specific options dialogs are
+// removed.
+string16 StripColon(const string16& str);
+
+} // namespace options_util
+
+#endif // CHROME_BROWSER_DOM_UI_OPTIONS_DOM_OPTIONS_UTIL_H_
« no previous file with comments | « chrome/browser/dom_ui/options/browser_options_handler.cc ('k') | chrome/browser/dom_ui/options/dom_options_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698