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

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

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 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
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>
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // program files directory. 372 // program files directory.
373 base::DIR_PROGRAM_FILESX86; 373 base::DIR_PROGRAM_FILESX86;
374 #else 374 #else
375 base::DIR_PROGRAM_FILES; 375 base::DIR_PROGRAM_FILES;
376 #endif 376 #endif
377 base::FilePath program_files_path; 377 base::FilePath program_files_path;
378 if (!PathService::Get(kProgramFilesKey, &program_files_path)) { 378 if (!PathService::Get(kProgramFilesKey, &program_files_path)) {
379 NOTREACHED(); 379 NOTREACHED();
380 return true; 380 return true;
381 } 381 }
382 return !StartsWith(exe_path.value(), program_files_path.value(), false); 382 return !base::StartsWith(exe_path.value(), program_files_path.value(), false);
383 } 383 }
384 384
385 bool InstallUtil::IsMultiInstall(BrowserDistribution* dist, 385 bool InstallUtil::IsMultiInstall(BrowserDistribution* dist,
386 bool system_install) { 386 bool system_install) {
387 DCHECK(dist); 387 DCHECK(dist);
388 ProductState state; 388 ProductState state;
389 return state.Initialize(system_install, dist) && state.is_multi_install(); 389 return state.Initialize(system_install, dist) && state.is_multi_install();
390 } 390 }
391 391
392 bool CheckIsChromeSxSProcess() { 392 bool CheckIsChromeSxSProcess() {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 // Open the program and see if it references the expected file. 651 // Open the program and see if it references the expected file.
652 base::File file; 652 base::File file;
653 BY_HANDLE_FILE_INFORMATION info = {}; 653 BY_HANDLE_FILE_INFORMATION info = {};
654 654
655 return (OpenForInfo(path, &file) && 655 return (OpenForInfo(path, &file) &&
656 GetInfo(file, &info) && 656 GetInfo(file, &info) &&
657 info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber && 657 info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber &&
658 info.nFileIndexHigh == file_info_.nFileIndexHigh && 658 info.nFileIndexHigh == file_info_.nFileIndexHigh &&
659 info.nFileIndexLow == file_info_.nFileIndexLow); 659 info.nFileIndexLow == file_info_.nFileIndexLow);
660 } 660 }
OLDNEW
« no previous file with comments | « chrome/installer/util/delete_after_reboot_helper.cc ('k') | chrome/installer/util/shell_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698