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

Side by Side Diff: base/win/shortcut.cc

Issue 468253002: Move file_util to base/files/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to add forwarding header to patch Created 6 years, 4 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 | « base/win/event_trace_controller_unittest.cc ('k') | base/win/shortcut_unittest.cc » ('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) 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 "base/win/shortcut.h" 5 #include "base/win/shortcut.h"
6 6
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <propkey.h> 9 #include <propkey.h>
10 10
11 #include "base/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/threading/thread_restrictions.h" 12 #include "base/threading/thread_restrictions.h"
13 #include "base/win/scoped_comptr.h" 13 #include "base/win/scoped_comptr.h"
14 #include "base/win/scoped_propvariant.h" 14 #include "base/win/scoped_propvariant.h"
15 #include "base/win/win_util.h" 15 #include "base/win/win_util.h"
16 #include "base/win/windows_version.h" 16 #include "base/win/windows_version.h"
17 17
18 namespace base { 18 namespace base {
19 namespace win { 19 namespace win {
20 20
21 namespace { 21 namespace {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 if (GetVersion() < VERSION_WIN7) 327 if (GetVersion() < VERSION_WIN7)
328 return false; 328 return false;
329 329
330 int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarunpin", 330 int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarunpin",
331 shortcut, NULL, NULL, 0)); 331 shortcut, NULL, NULL, 0));
332 return result > 32; 332 return result > 32;
333 } 333 }
334 334
335 } // namespace win 335 } // namespace win
336 } // namespace base 336 } // namespace base
OLDNEW
« no previous file with comments | « base/win/event_trace_controller_unittest.cc ('k') | base/win/shortcut_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698