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

Side by Side Diff: chrome/common/chrome_paths_android.cc

Issue 10825155: Build target for Android WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 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/common/chrome_paths_internal.h" 5 #include "chrome/common/chrome_paths_internal.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result) { 13 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result) {
14 if (!PathService::Get(base::DIR_CACHE, result)) 14 if (!PathService::Get(base::DIR_CACHE, result))
15 *result = profile_dir; 15 *result = profile_dir;
16
Jói 2012/08/02 15:20:00 This blank line looks like it was introduced accid
Torne 2012/08/03 10:31:36 Done.
16 } 17 }
17 18
18 bool GetDefaultUserDataDirectory(FilePath* result) { 19 bool GetDefaultUserDataDirectory(FilePath* result) {
19 return PathService::Get(base::DIR_ANDROID_APP_DATA, result); 20 return PathService::Get(base::DIR_ANDROID_APP_DATA, result);
20 } 21 }
21 22
22 bool GetUserDocumentsDirectory(FilePath* result) { 23 bool GetUserDocumentsDirectory(FilePath* result) {
23 if (!GetDefaultUserDataDirectory(result)) 24 if (!GetDefaultUserDataDirectory(result))
24 return false; 25 return false;
25 *result = result->Append("Documents"); 26 *result = result->Append("Documents");
(...skipping 10 matching lines...) Expand all
36 bool GetUserPicturesDirectory(FilePath* result) { 37 bool GetUserPicturesDirectory(FilePath* result) {
37 NOTIMPLEMENTED(); 38 NOTIMPLEMENTED();
38 return false; 39 return false;
39 } 40 }
40 41
41 bool GetUserDesktop(FilePath* result) { 42 bool GetUserDesktop(FilePath* result) {
42 NOTIMPLEMENTED() << "Android doesn't support GetUserDesktop"; 43 NOTIMPLEMENTED() << "Android doesn't support GetUserDesktop";
43 return false; 44 return false;
44 } 45 }
45 46
47 bool ProcessNeedsProfileDir(const std::string& process_type) {
48 // For now we have no reason to forbid this on Android.
49 return true;
50 }
51
46 } // namespace chrome 52 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698