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

Side by Side Diff: win8/viewer/metro_viewer_process_host.cc

Issue 753743003: Remove remaining implicit scoped_ptr<T> to T* conversions in win8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « win8/viewer/metro_viewer_process_host.h ('k') | 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "win8/viewer/metro_viewer_process_host.h" 5 #include "win8/viewer/metro_viewer_process_host.h"
6 6
7 #include <shlobj.h> 7 #include <shlobj.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 29 matching lines...) Expand all
40 MetroViewerProcessHost* owner) 40 MetroViewerProcessHost* owner)
41 : owner_(owner) { 41 : owner_(owner) {
42 } 42 }
43 43
44 void MetroViewerProcessHost::InternalMessageFilter::OnChannelConnected( 44 void MetroViewerProcessHost::InternalMessageFilter::OnChannelConnected(
45 int32 peer_pid) { 45 int32 peer_pid) {
46 owner_->NotifyChannelConnected(); 46 owner_->NotifyChannelConnected();
47 } 47 }
48 48
49 MetroViewerProcessHost::MetroViewerProcessHost( 49 MetroViewerProcessHost::MetroViewerProcessHost(
50 base::SingleThreadTaskRunner* ipc_task_runner) { 50 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
51 DCHECK(!instance_); 51 DCHECK(!instance_);
52 instance_ = this; 52 instance_ = this;
53 53
54 channel_ = IPC::ChannelProxy::Create(kMetroViewerIPCChannelName, 54 channel_ = IPC::ChannelProxy::Create(kMetroViewerIPCChannelName,
55 IPC::Channel::MODE_NAMED_SERVER, 55 IPC::Channel::MODE_NAMED_SERVER,
56 this, 56 this,
57 ipc_task_runner); 57 ipc_task_runner);
58 } 58 }
59 59
60 MetroViewerProcessHost::~MetroViewerProcessHost() { 60 MetroViewerProcessHost::~MetroViewerProcessHost() {
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 const base::FilePath& folder) { 335 const base::FilePath& folder) {
336 if (success) 336 if (success)
337 select_folder_completion_callback_.Run(base::FilePath(folder), 0, NULL); 337 select_folder_completion_callback_.Run(base::FilePath(folder), 0, NULL);
338 else 338 else
339 failure_callback_.Run(NULL); 339 failure_callback_.Run(NULL);
340 select_folder_completion_callback_.Reset(); 340 select_folder_completion_callback_.Reset();
341 failure_callback_.Reset(); 341 failure_callback_.Reset();
342 } 342 }
343 343
344 } // namespace win8 344 } // namespace win8
OLDNEW
« no previous file with comments | « win8/viewer/metro_viewer_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698