| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/test/webdriver/utility_functions.h" | 5 #include "chrome/test/webdriver/webdriver_util.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| 11 | 11 |
| 12 namespace webdriver { | 12 namespace webdriver { |
| 13 | 13 |
| 14 void GetApplicationDirs(std::vector<FilePath>* app_dirs) { | 14 void GetApplicationDirs(std::vector<FilePath>* app_dirs) { |
| 15 FilePath user_app_dir; | 15 FilePath user_app_dir; |
| 16 if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir)) | 16 if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir)) |
| 17 app_dirs->push_back(user_app_dir); | 17 app_dirs->push_back(user_app_dir); |
| 18 FilePath local_app_dir; | 18 FilePath local_app_dir; |
| 19 if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir)) | 19 if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir)) |
| 20 app_dirs->push_back(local_app_dir); | 20 app_dirs->push_back(local_app_dir); |
| 21 } | 21 } |
| 22 | 22 |
| 23 } // namespace webdriver | 23 } // namespace webdriver |
| OLD | NEW |