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

Unified Diff: chrome/test/webdriver/utility_functions_mac.mm

Issue 7582005: Add chrome.loadAsync capability to ChromeDriver, which allows the user not to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/utility_functions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/utility_functions_mac.mm
diff --git a/chrome/test/webdriver/utility_functions_mac.mm b/chrome/test/webdriver/utility_functions_mac.mm
new file mode 100644
index 0000000000000000000000000000000000000000..0db48f0ffc7267010cf50d6e40a98ea91997f74e
--- /dev/null
+++ b/chrome/test/webdriver/utility_functions_mac.mm
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/test/webdriver/utility_functions.h"
+
+#import <Foundation/Foundation.h>
+
+#include "base/file_path.h"
+#include "base/mac/foundation_util.h"
+
+namespace webdriver {
+
+void GetApplicationDirs(std::vector<FilePath>* app_dirs) {
+ FilePath user_app_dir;
+ if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir))
+ app_dirs->push_back(user_app_dir);
+ FilePath local_app_dir;
+ if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir))
+ app_dirs->push_back(local_app_dir);
+}
+
+} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/utility_functions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698