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

Side by Side Diff: chrome/installer/util/install_util.cc

Issue 16421004: Use a direct include of strings headers in chrome/installer/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/installer/util/install_util.h ('k') | chrome/installer/util/install_util_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 // See the corresponding header file for description of the functions in this 5 // See the corresponding header file for description of the functions in this
6 // file. 6 // file.
7 7
8 #include "chrome/installer/util/install_util.h" 8 #include "chrome/installer/util/install_util.h"
9 9
10 #include <shellapi.h> 10 #include <shellapi.h>
11 #include <shlobj.h> 11 #include <shlobj.h>
12 #include <shlwapi.h> 12 #include <shlwapi.h>
13 13
14 #include <algorithm> 14 #include <algorithm>
15 15
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/file_util.h" 17 #include "base/file_util.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/process_util.h" 21 #include "base/process_util.h"
22 #include "base/string_util.h" 22 #include "base/strings/string_util.h"
23 #include "base/sys_info.h" 23 #include "base/sys_info.h"
24 #include "base/values.h" 24 #include "base/values.h"
25 #include "base/version.h" 25 #include "base/version.h"
26 #include "base/win/metro.h" 26 #include "base/win/metro.h"
27 #include "base/win/registry.h" 27 #include "base/win/registry.h"
28 #include "base/win/windows_version.h" 28 #include "base/win/windows_version.h"
29 #include "chrome/installer/util/browser_distribution.h" 29 #include "chrome/installer/util/browser_distribution.h"
30 #include "chrome/installer/util/google_update_constants.h" 30 #include "chrome/installer/util/google_update_constants.h"
31 #include "chrome/installer/util/helper.h" 31 #include "chrome/installer/util/helper.h"
32 #include "chrome/installer/util/installation_state.h" 32 #include "chrome/installer/util/installation_state.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // Open the program and see if it references the expected file. 603 // Open the program and see if it references the expected file.
604 base::win::ScopedHandle handle; 604 base::win::ScopedHandle handle;
605 BY_HANDLE_FILE_INFORMATION info = {}; 605 BY_HANDLE_FILE_INFORMATION info = {};
606 606
607 return (OpenForInfo(path, &handle) && 607 return (OpenForInfo(path, &handle) &&
608 GetInfo(handle, &info) && 608 GetInfo(handle, &info) &&
609 info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber && 609 info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber &&
610 info.nFileIndexHigh == file_info_.nFileIndexHigh && 610 info.nFileIndexHigh == file_info_.nFileIndexHigh &&
611 info.nFileIndexLow == file_info_.nFileIndexLow); 611 info.nFileIndexLow == file_info_.nFileIndexLow);
612 } 612 }
OLDNEW
« no previous file with comments | « chrome/installer/util/install_util.h ('k') | chrome/installer/util/install_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698