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

Side by Side Diff: content/browser/renderer_host/pepper/browser_ppapi_host_test.cc

Issue 725353003: Don't pass ProcessHandle through ChildProcessHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 1 month 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) 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 "content/browser/renderer_host/pepper/browser_ppapi_host_test.h" 5 #include "content/browser/renderer_host/pepper/browser_ppapi_host_test.h"
6 6
7 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" 7 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 BrowserPpapiHostTest::BrowserPpapiHostTest() : sink_() { 11 BrowserPpapiHostTest::BrowserPpapiHostTest() : sink_() {
12 ppapi_host_.reset( 12 ppapi_host_.reset(
13 new BrowserPpapiHostImpl(&sink_, 13 new BrowserPpapiHostImpl(&sink_,
14 ppapi::PpapiPermissions::AllPermissions(), 14 ppapi::PpapiPermissions::AllPermissions(),
15 std::string(), 15 std::string(),
16 base::FilePath(), 16 base::FilePath(),
17 base::FilePath(), 17 base::FilePath(),
18 false /* in_process */, 18 false /* in_process */,
19 false /* external_plugin */)); 19 false /* external_plugin */));
20 ppapi_host_->set_plugin_process_handle(base::GetCurrentProcessHandle()); 20 ppapi_host_->set_plugin_process(base::Process::Current());
21 } 21 }
22 22
23 BrowserPpapiHostTest::~BrowserPpapiHostTest() {} 23 BrowserPpapiHostTest::~BrowserPpapiHostTest() {}
24 24
25 BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() { 25 BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() {
26 return ppapi_host_.get(); 26 return ppapi_host_.get();
27 } 27 }
28 28
29 } // namespace content 29 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698