| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/shell_browser_context.h" | 5 #include "content/shell/browser/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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); | 100 CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); |
| 101 path_ = path_.Append("Chromium Content Shell"); | 101 path_ = path_.Append("Chromium Content Shell"); |
| 102 #elif defined(OS_ANDROID) | 102 #elif defined(OS_ANDROID) |
| 103 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); | 103 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); |
| 104 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); | 104 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); |
| 105 #else | 105 #else |
| 106 NOTIMPLEMENTED(); | 106 NOTIMPLEMENTED(); |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 if (!base::PathExists(path_)) | 109 if (!base::PathExists(path_)) |
| 110 file_util::CreateDirectory(path_); | 110 base::CreateDirectory(path_); |
| 111 } | 111 } |
| 112 | 112 |
| 113 base::FilePath ShellBrowserContext::GetPath() const { | 113 base::FilePath ShellBrowserContext::GetPath() const { |
| 114 return path_; | 114 return path_; |
| 115 } | 115 } |
| 116 | 116 |
| 117 bool ShellBrowserContext::IsOffTheRecord() const { | 117 bool ShellBrowserContext::IsOffTheRecord() const { |
| 118 return off_the_record_; | 118 return off_the_record_; |
| 119 } | 119 } |
| 120 | 120 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 GeolocationPermissionContext* | 214 GeolocationPermissionContext* |
| 215 ShellBrowserContext::GetGeolocationPermissionContext() { | 215 ShellBrowserContext::GetGeolocationPermissionContext() { |
| 216 return NULL; | 216 return NULL; |
| 217 } | 217 } |
| 218 | 218 |
| 219 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 219 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
| 220 return NULL; | 220 return NULL; |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace content | 223 } // namespace content |
| OLD | NEW |