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

Unified Diff: remoting/host/disconnect_window_mac.mm

Issue 9967006: Check host_ is not NULL in isRToL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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: remoting/host/disconnect_window_mac.mm
diff --git a/remoting/host/disconnect_window_mac.mm b/remoting/host/disconnect_window_mac.mm
index f6f5e9a6fb8f62c04fa6f0412261a82720019ab9..bccd31c97eec7e25b7db21db274d1ef293497172 100644
--- a/remoting/host/disconnect_window_mac.mm
+++ b/remoting/host/disconnect_window_mac.mm
@@ -96,7 +96,11 @@ scoped_ptr<DisconnectWindow> DisconnectWindow::Create() {
}
- (BOOL)isRToL {
- return host_->ui_strings().direction == remoting::UiStrings::RTL;
+ if (host_) {
+ return host_->ui_strings().direction == remoting::UiStrings::RTL;
+ } else {
+ return false;
+ }
}
- (void)close {
« 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