Commit 79ee6539 authored by hbono@chromium.org's avatar hbono@chromium.org

Show a separator only when clicking a misspelling word.

This is another stupid mistake of mine while moving spellchecker-related context-menu to the SpellingMenuObserver class. (As written in r111881 <http://crrev.com/111881>, the original code shows this separator only when |misspelled_word| is not empty.) This change shows this separator only when this |misspelled_word| is not empty.

BUG=105926
TEST=manual

Review URL: http://codereview.chromium.org/8806006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113124 0039d316-1c4b-4281-b951-d872f2087c98
parent 9365332a
...@@ -141,9 +141,9 @@ void SpellingMenuObserver::InitMenu(const ContextMenuParams& params) { ...@@ -141,9 +141,9 @@ void SpellingMenuObserver::InitMenu(const ContextMenuParams& params) {
l10n_util::GetStringUTF16(spelling_message)); l10n_util::GetStringUTF16(spelling_message));
} }
#endif #endif
}
proxy_->AddSeparator(); proxy_->AddSeparator();
}
} }
bool SpellingMenuObserver::IsCommandIdSupported(int command_id) { bool SpellingMenuObserver::IsCommandIdSupported(int command_id) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment