OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <shlobj.h> | 5 #include <shlobj.h> |
6 #include <shobjidl.h> | 6 #include <shobjidl.h> |
7 #include <atlcomcli.h> | 7 #include <atlcomcli.h> |
8 | 8 |
9 #include "chrome/common/win_safe_util.h" | 9 #include "chrome/common/win_safe_util.h" |
10 | 10 |
| 11 #include "app/win_util.h" |
11 #include "base/file_path.h" | 12 #include "base/file_path.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "chrome/common/win_util.h" | |
16 | 16 |
17 namespace win_util { | 17 namespace win_util { |
18 | 18 |
19 // This function implementation is based on the attachment execution | 19 // This function implementation is based on the attachment execution |
20 // services functionally deployed with IE6 or Service pack 2. This | 20 // services functionally deployed with IE6 or Service pack 2. This |
21 // functionality is exposed in the IAttachmentExecute COM interface. | 21 // functionality is exposed in the IAttachmentExecute COM interface. |
22 // more information at: | 22 // more information at: |
23 // http://msdn2.microsoft.com/en-us/library/ms647048.aspx | 23 // http://msdn2.microsoft.com/en-us/library/ms647048.aspx |
24 bool SaferOpenItemViaShell(HWND hwnd, const std::wstring& window_title, | 24 bool SaferOpenItemViaShell(HWND hwnd, const std::wstring& window_title, |
25 const FilePath& full_path, | 25 const FilePath& full_path, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 if (!result || written != arraysize(kIdentifier)) { | 112 if (!result || written != arraysize(kIdentifier)) { |
113 DCHECK(FALSE); | 113 DCHECK(FALSE); |
114 return false; | 114 return false; |
115 } | 115 } |
116 | 116 |
117 return true; | 117 return true; |
118 } | 118 } |
119 | 119 |
120 } // namespace win_util | 120 } // namespace win_util |
OLD | NEW |