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

Side by Side Diff: remoting/client/plugin/chromoting_instance.cc

Issue 6902011: Cope gracefully with scripts querying stats before client has started. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit-picked. Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/client/plugin/chromoting_instance.h" 5 #include "remoting/client/plugin/chromoting_instance.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 object->Init(); 284 object->Init();
285 285
286 // The pp::Var takes ownership of object here. 286 // The pp::Var takes ownership of object here.
287 instance_object_ = pp::Var(this, object); 287 instance_object_ = pp::Var(this, object);
288 } 288 }
289 289
290 return instance_object_; 290 return instance_object_;
291 } 291 }
292 292
293 ChromotingStats* ChromotingInstance::GetStats() { 293 ChromotingStats* ChromotingInstance::GetStats() {
294 if (!client_.get())
295 return NULL;
294 return client_->GetStats(); 296 return client_->GetStats();
295 } 297 }
296 298
297 } // namespace remoting 299 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/chromoting_scriptable_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698