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
3 // found in the LICENSE file.
5 #import <Foundation/Foundation.h>
7 #include "base/files/file_path.h"
8 #include "base/mac/foundation_util.h"
10 void GetApplicationDirs(std::vector<base::FilePath>* app_dirs) {
11 base::FilePath user_app_dir;
12 if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir))
13 app_dirs->push_back(user_app_dir);
14 base::FilePath local_app_dir;
15 if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir))
16 app_dirs->push_back(local_app_dir);