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

Side by Side Diff: content/test/test_content_browser_client.cc

Issue 2592793002: Revert of Change how the quota system computes the total poolsize for temporary storage (Closed)
Patch Set: Created 3 years, 12 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
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/test/test_content_browser_client.h" 5 #include "content/test/test_content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "storage/browser/quota/quota_settings.h"
10 9
11 namespace content { 10 namespace content {
12 11
13 TestContentBrowserClient::TestContentBrowserClient() { 12 TestContentBrowserClient::TestContentBrowserClient() {
14 } 13 }
15 14
16 TestContentBrowserClient::~TestContentBrowserClient() { 15 TestContentBrowserClient::~TestContentBrowserClient() {
17 } 16 }
18 17
19 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { 18 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() {
20 if (!download_dir_.IsValid()) { 19 if (!download_dir_.IsValid()) {
21 bool result = download_dir_.CreateUniqueTempDir(); 20 bool result = download_dir_.CreateUniqueTempDir();
22 CHECK(result); 21 CHECK(result);
23 } 22 }
24 return download_dir_.GetPath(); 23 return download_dir_.GetPath();
25 } 24 }
26 25
27 void TestContentBrowserClient::GetQuotaSettings(
28 BrowserContext* context,
29 StoragePartition* partition,
30 const storage::OptionalQuotaSettingsCallback& callback) {
31 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024));
32 }
33
34 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_content_browser_client.h ('k') | extensions/shell/browser/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698