summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_menu_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_menu_manager.h')
-rw-r--r--chrome/browser/extensions/extension_menu_manager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_menu_manager.h b/chrome/browser/extensions/extension_menu_manager.h
index c2d23a5..84c0588 100644
--- a/chrome/browser/extensions/extension_menu_manager.h
+++ b/chrome/browser/extensions/extension_menu_manager.h
@@ -120,8 +120,10 @@ class ExtensionMenuItem {
target_url_patterns_ = patterns;
}
- // Returns the title with any instances of %s replaced by |selection|.
- string16 TitleWithReplacement(const string16& selection) const;
+ // Returns the title with any instances of %s replaced by |selection|. The
+ // result will be no longer than |max_length|.
+ string16 TitleWithReplacement(const string16& selection,
+ size_t max_length) const;
// Set the checked state to |checked|. Returns true if successful.
bool SetChecked(bool checked);