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

Unified Diff: remoting/host/chromoting_host.cc

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 | « remoting/host/chromoting_host.h ('k') | remoting/host/continue_window_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 98a2a6ce357de57764febe7d43c4bb9c7e7156c0..dd8299d60f3e9a1a3bf11bc4082f62056d1186ca 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -361,6 +361,13 @@ void ChromotingHost::PauseSession(bool pause) {
desktop_environment_->OnPause(!pause);
}
+void ChromotingHost::SetUiStrings(const UiStrings& ui_strings) {
+ DCHECK_EQ(context_->main_message_loop(), MessageLoop::current());
+ DCHECK_EQ(state_, kInitial);
+
+ ui_strings_ = ui_strings;
+}
+
void ChromotingHost::OnClientDisconnected(ConnectionToClient* connection) {
DCHECK_EQ(context_->main_message_loop(), MessageLoop::current());
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/continue_window_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698