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

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

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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/pepper_entrypoints.h" 5 #include "remoting/client/plugin/pepper_entrypoints.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 25 matching lines...) Expand all
36 // Register a global log handler, but only in Debug builds. 36 // Register a global log handler, but only in Debug builds.
37 ChromotingInstance::RegisterLogMessageHandler(); 37 ChromotingInstance::RegisterLogMessageHandler();
38 #endif 38 #endif
39 39
40 pp::InternalSetModuleSingleton(module); 40 pp::InternalSetModuleSingleton(module);
41 return PP_OK; 41 return PP_OK;
42 } 42 }
43 43
44 void PPP_ShutdownModule() { 44 void PPP_ShutdownModule() {
45 delete pp::Module::Get(); 45 delete pp::Module::Get();
46 pp::InternalSetModuleSingleton(NULL); 46 pp::InternalSetModuleSingleton(nullptr);
47 } 47 }
48 48
49 const void* PPP_GetInterface(const char* interface_name) { 49 const void* PPP_GetInterface(const char* interface_name) {
50 if (!pp::Module::Get()) 50 if (!pp::Module::Get())
51 return NULL; 51 return nullptr;
52 return pp::Module::Get()->GetPluginInterface(interface_name); 52 return pp::Module::Get()->GetPluginInterface(interface_name);
53 } 53 }
54 54
55 const void* PPP_GetBrowserInterface(const char* interface_name) { 55 const void* PPP_GetBrowserInterface(const char* interface_name) {
56 if (!pp::Module::Get()) 56 if (!pp::Module::Get())
57 return NULL; 57 return nullptr;
58 return pp::Module::Get()->GetBrowserInterface(interface_name); 58 return pp::Module::Get()->GetBrowserInterface(interface_name);
59 } 59 }
60 60
61 } // namespace remoting 61 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/delegating_signal_strategy.cc ('k') | remoting/client/plugin/pepper_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698