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

Side by Side Diff: components/nacl/renderer/nexe_load_manager.cc

Issue 222123004: Pepper: Fix NexeLoadManager::set_exit_status(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/nacl/renderer/nexe_load_manager.h" 5 #include "components/nacl/renderer/nexe_load_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "components/nacl/common/nacl_host_messages.h" 10 #include "components/nacl/common/nacl_host_messages.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 void NexeLoadManager::SetReadOnlyProperty(PP_Var key, PP_Var value) { 316 void NexeLoadManager::SetReadOnlyProperty(PP_Var key, PP_Var value) {
317 plugin_instance_->SetEmbedProperty(key, value); 317 plugin_instance_->SetEmbedProperty(key, value);
318 } 318 }
319 319
320 void NexeLoadManager::LogToConsole(const std::string& message) { 320 void NexeLoadManager::LogToConsole(const std::string& message) {
321 ppapi::PpapiGlobals::Get()->LogWithSource( 321 ppapi::PpapiGlobals::Get()->LogWithSource(
322 pp_instance_, PP_LOGLEVEL_LOG, std::string("NativeClient"), message); 322 pp_instance_, PP_LOGLEVEL_LOG, std::string("NativeClient"), message);
323 } 323 }
324 324
325 void NexeLoadManager::set_exit_status(int exit_status) { 325 void NexeLoadManager::set_exit_status(int exit_status) {
326 exit_status_ = exit_status;
326 ppapi::ScopedPPVar exit_status_name_var( 327 ppapi::ScopedPPVar exit_status_name_var(
327 ppapi::ScopedPPVar::PassRef(), 328 ppapi::ScopedPPVar::PassRef(),
328 ppapi::StringVar::StringToPPVar("exitStatus")); 329 ppapi::StringVar::StringToPPVar("exitStatus"));
329 SetReadOnlyProperty(exit_status_name_var.get(), PP_MakeInt32(exit_status)); 330 SetReadOnlyProperty(exit_status_name_var.get(), PP_MakeInt32(exit_status));
330 } 331 }
331 332
332 } // namespace nacl 333 } // namespace nacl
OLDNEW
« 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