| OLD | NEW |
| 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/importer/firefox_importer_utils.h" | 5 #include "chrome/browser/importer/firefox_importer_utils.h" |
| 6 | 6 |
| 7 #include <shlobj.h> | 7 #include <shlobj.h> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 base::FilePath ini_file; | 71 base::FilePath ini_file; |
| 72 // The default location of the profile folder containing user data is | 72 // The default location of the profile folder containing user data is |
| 73 // under the "Application Data" folder in Windows XP, Vista, and 7. | 73 // under the "Application Data" folder in Windows XP, Vista, and 7. |
| 74 if (!PathService::Get(base::DIR_APP_DATA, &ini_file)) | 74 if (!PathService::Get(base::DIR_APP_DATA, &ini_file)) |
| 75 return base::FilePath(); | 75 return base::FilePath(); |
| 76 | 76 |
| 77 ini_file = ini_file.AppendASCII("Mozilla"); | 77 ini_file = ini_file.AppendASCII("Mozilla"); |
| 78 ini_file = ini_file.AppendASCII("Firefox"); | 78 ini_file = ini_file.AppendASCII("Firefox"); |
| 79 ini_file = ini_file.AppendASCII("profiles.ini"); | 79 ini_file = ini_file.AppendASCII("profiles.ini"); |
| 80 | 80 |
| 81 return file_util::PathExists(ini_file) ? ini_file : base::FilePath(); | 81 return base::PathExists(ini_file) ? ini_file : base::FilePath(); |
| 82 } | 82 } |
| OLD | NEW |