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

Side by Side Diff: chrome/utility/shell_handler_win.cc

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « chrome/utility/safe_json_parser_handler.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 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 "chrome/utility/shell_handler_win.h" 5 #include "chrome/utility/shell_handler_win.h"
6 6
7 #include <commdlg.h> 7 #include <commdlg.h>
8 8
9 #include <memory>
10
9 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/common/chrome_utility_messages.h" 12 #include "chrome/common/chrome_utility_messages.h"
12 #include "content/public/utility/utility_thread.h" 13 #include "content/public/utility/utility_thread.h"
13 #include "ui/base/win/open_file_name_win.h" 14 #include "ui/base/win/open_file_name_win.h"
14 #include "ui/base/win/shell.h" 15 #include "ui/base/win/shell.h"
15 16
16 ShellHandler::ShellHandler() {} 17 ShellHandler::ShellHandler() {}
17 ShellHandler::~ShellHandler() {} 18 ShellHandler::~ShellHandler() {}
18 19
19 bool ShellHandler::OnMessageReceived(const IPC::Message& message) { 20 bool ShellHandler::OnMessageReceived(const IPC::Message& message) {
20 bool handled = true; 21 bool handled = true;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 88 }
88 89
89 // Zero means the dialog was closed, otherwise we had an error. 90 // Zero means the dialog was closed, otherwise we had an error.
90 DWORD error_code = ::CommDlgExtendedError(); 91 DWORD error_code = ::CommDlgExtendedError();
91 if (error_code != 0) 92 if (error_code != 0)
92 NOTREACHED() << "GetSaveFileName failed with code: " << error_code; 93 NOTREACHED() << "GetSaveFileName failed with code: " << error_code;
93 94
94 content::UtilityThread::Get()->Send( 95 content::UtilityThread::Get()->Send(
95 new ChromeUtilityHostMsg_GetSaveFileName_Failed()); 96 new ChromeUtilityHostMsg_GetSaveFileName_Failed());
96 } 97 }
OLDNEW
« no previous file with comments | « chrome/utility/safe_json_parser_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698