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

Side by Side Diff: remoting/host/plugin/host_script_object.cc

Issue 10893009: Log when the host is started for an account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change shutdown log to a TODO, update unit test expectations. Created 8 years, 3 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
« no previous file with comments | « remoting/host/host_status_observer.h ('k') | remoting/host/remoting_host_messages.mc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/host/plugin/host_script_object.h" 5 #include "remoting/host/plugin/host_script_object.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 base::Closure()); 600 base::Closure());
601 it2me_host_user_interface_->Start(host_.get(), disconnect_callback); 601 it2me_host_user_interface_->Start(host_.get(), disconnect_callback);
602 host_event_logger_ = HostEventLogger::Create(host_, kApplicationName); 602 host_event_logger_ = HostEventLogger::Create(host_, kApplicationName);
603 603
604 { 604 {
605 base::AutoLock auto_lock(ui_strings_lock_); 605 base::AutoLock auto_lock(ui_strings_lock_);
606 host_->SetUiStrings(ui_strings_); 606 host_->SetUiStrings(ui_strings_);
607 } 607 }
608 608
609 signal_strategy_->Connect(); 609 signal_strategy_->Connect();
610 host_->Start(); 610 host_->Start(uid);
611 611
612 SetState(kRequestedAccessCode); 612 SetState(kRequestedAccessCode);
613 return; 613 return;
614 } 614 }
615 615
616 bool HostNPScriptObject::Disconnect(const NPVariant* args, 616 bool HostNPScriptObject::Disconnect(const NPVariant* args,
617 uint32_t arg_count, 617 uint32_t arg_count,
618 NPVariant* result) { 618 NPVariant* result) {
619 DCHECK(plugin_task_runner_->BelongsToCurrentThread()); 619 DCHECK(plugin_task_runner_->BelongsToCurrentThread());
620 if (arg_count != 0) { 620 if (arg_count != 0) {
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 return is_good; 1298 return is_good;
1299 } 1299 }
1300 1300
1301 void HostNPScriptObject::SetException(const std::string& exception_string) { 1301 void HostNPScriptObject::SetException(const std::string& exception_string) {
1302 DCHECK(plugin_task_runner_->BelongsToCurrentThread()); 1302 DCHECK(plugin_task_runner_->BelongsToCurrentThread());
1303 g_npnetscape_funcs->setexception(parent_, exception_string.c_str()); 1303 g_npnetscape_funcs->setexception(parent_, exception_string.c_str());
1304 LOG(INFO) << exception_string; 1304 LOG(INFO) << exception_string;
1305 } 1305 }
1306 1306
1307 } // namespace remoting 1307 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_status_observer.h ('k') | remoting/host/remoting_host_messages.mc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698