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

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « content/shell/common/webkit_test_helpers.cc ('k') | content/shell/shell_browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #elif defined(OS_MACOSX) 93 #elif defined(OS_MACOSX)
94 CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); 94 CHECK(PathService::Get(base::DIR_APP_DATA, &path_));
95 path_ = path_.Append("Chromium Content Shell"); 95 path_ = path_.Append("Chromium Content Shell");
96 #elif defined(OS_ANDROID) 96 #elif defined(OS_ANDROID)
97 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); 97 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_));
98 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); 98 path_ = path_.Append(FILE_PATH_LITERAL("content_shell"));
99 #else 99 #else
100 NOTIMPLEMENTED(); 100 NOTIMPLEMENTED();
101 #endif 101 #endif
102 102
103 if (!file_util::PathExists(path_)) 103 if (!base::PathExists(path_))
104 file_util::CreateDirectory(path_); 104 file_util::CreateDirectory(path_);
105 } 105 }
106 106
107 base::FilePath ShellBrowserContext::GetPath() { 107 base::FilePath ShellBrowserContext::GetPath() {
108 return path_; 108 return path_;
109 } 109 }
110 110
111 bool ShellBrowserContext::IsOffTheRecord() const { 111 bool ShellBrowserContext::IsOffTheRecord() const {
112 return off_the_record_; 112 return off_the_record_;
113 } 113 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 GeolocationPermissionContext* 185 GeolocationPermissionContext*
186 ShellBrowserContext::GetGeolocationPermissionContext() { 186 ShellBrowserContext::GetGeolocationPermissionContext() {
187 return NULL; 187 return NULL;
188 } 188 }
189 189
190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
191 return NULL; 191 return NULL;
192 } 192 }
193 193
194 } // namespace content 194 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/common/webkit_test_helpers.cc ('k') | content/shell/shell_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698