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

Unified Diff: remoting/host/chromoting_host.h

Issue 7669045: Make ChromotingHost::ui_strings() immutable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 0b8f29677b72ad6a7c615c73e22ac38caf378c50..fc35798263f783cf0c546e25993898c9d35ed1d7 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -145,7 +145,10 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// is ignored.
void PauseSession(bool pause);
- UiStrings* ui_strings() { return &ui_strings_; }
+ const UiStrings& ui_strings() { return ui_strings_; }
+
+ // Set localized strings. Must be called before host is started.
+ void SetUiStrings(const UiStrings& ui_strings);
private:
friend class base::RefCountedThreadSafe<ChromotingHost>;
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698