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

Side by Side Diff: chrome/browser/shell_integration_win.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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 "chrome/browser/shell_integration.h" 5 #include "chrome/browser/shell_integration.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shobjidl.h> 8 #include <shobjidl.h>
9 #include <propkey.h> 9 #include <propkey.h>
10 10
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 size_t folder = 523 size_t folder =
524 InstallUtil::IsPerUserInstall(chrome_exe.value().c_str()) ? 1 : 0; 524 InstallUtil::IsPerUserInstall(chrome_exe.value().c_str()) ? 1 : 0;
525 for (; folder < arraysize(kFolderIds); ++folder) { 525 for (; folder < arraysize(kFolderIds); ++folder) {
526 if (!PathService::Get(kFolderIds[folder], &shortcut)) { 526 if (!PathService::Get(kFolderIds[folder], &shortcut)) {
527 NOTREACHED(); 527 NOTREACHED();
528 continue; 528 continue;
529 } 529 }
530 530
531 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name + 531 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name +
532 installer::kLnkExt); 532 installer::kLnkExt);
533 if (file_util::PathExists(shortcut)) 533 if (base::PathExists(shortcut))
534 return shortcut; 534 return shortcut;
535 } 535 }
536 536
537 return base::FilePath(); 537 return base::FilePath();
538 } 538 }
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_linux.cc ('k') | chrome/browser/spellchecker/spellcheck_custom_dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698