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

Side by Side Diff: chrome/common/win_safe_util.cc

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/platform_util_win.cc ('k') | chrome/common/win_util.h » ('j') | 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) 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
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
OLDNEW
« no previous file with comments | « chrome/common/platform_util_win.cc ('k') | chrome/common/win_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698