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

Unified Diff: chrome/browser/speech/speech_input_bubble.h

Issue 9595008: speech: Change SpeechInputBubbleBase::message_text() to return a const-ref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_bubble.h
diff --git a/chrome/browser/speech/speech_input_bubble.h b/chrome/browser/speech/speech_input_bubble.h
index d2c598e3d8257c4d901911a42a24c4f5c4d2e679..9267f2015e1610037d13c1710676fb2ac29024a9 100644
--- a/chrome/browser/speech/speech_input_bubble.h
+++ b/chrome/browser/speech/speech_input_bubble.h
@@ -152,13 +152,9 @@ class SpeechInputBubbleBase : public SpeechInputBubble {
// Overridden by subclasses to copy |icon_image()| to the screen.
virtual void UpdateImage() = 0;
- DisplayMode display_mode() {
- return display_mode_;
- }
+ DisplayMode display_mode() const { return display_mode_; }
- string16 message_text() {
- return message_text_;
- }
+ const string16& message_text() const { return message_text_; }
SkBitmap icon_image();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698