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

Side by Side Diff: content/shell/browser/layout_test/layout_test_message_filter.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 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/layout_test/layout_test_message_filter.h" 5 #include "content/shell/browser/layout_test/layout_test_message_filter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 policy->GrantReadFileSystem(render_process_id_, *filesystem_id); 112 policy->GrantReadFileSystem(render_process_id_, *filesystem_id);
113 } 113 }
114 114
115 void LayoutTestMessageFilter::OnClearAllDatabases() { 115 void LayoutTestMessageFilter::OnClearAllDatabases() {
116 DCHECK_CURRENTLY_ON(BrowserThread::FILE); 116 DCHECK_CURRENTLY_ON(BrowserThread::FILE);
117 database_tracker_->DeleteDataModifiedSince( 117 database_tracker_->DeleteDataModifiedSince(
118 base::Time(), net::CompletionCallback()); 118 base::Time(), net::CompletionCallback());
119 } 119 }
120 120
121 void LayoutTestMessageFilter::OnSetDatabaseQuota(int quota) { 121 void LayoutTestMessageFilter::OnSetDatabaseQuota(int quota) {
122 quota_manager_->SetQuotaSettings(storage::GetHardCodedSettings(quota)); 122 quota_manager_->SetTemporaryGlobalOverrideQuota(
123 quota * storage::QuotaManager::kPerHostTemporaryPortion,
124 storage::QuotaCallback());
123 } 125 }
124 126
125 void LayoutTestMessageFilter::OnSimulateWebNotificationClick( 127 void LayoutTestMessageFilter::OnSimulateWebNotificationClick(
126 const std::string& title, 128 const std::string& title,
127 int action_index, 129 int action_index,
128 const base::NullableString16& reply) { 130 const base::NullableString16& reply) {
129 LayoutTestNotificationManager* manager = 131 LayoutTestNotificationManager* manager =
130 LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager(); 132 LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
131 if (manager) 133 if (manager)
132 manager->SimulateClick(title, action_index, reply); 134 manager->SimulateClick(title, action_index, reply);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const base::DictionaryValue& changed_layout_test_runtime_flags) { 197 const base::DictionaryValue& changed_layout_test_runtime_flags) {
196 BlinkTestController::Get()->OnLayoutTestRuntimeFlagsChanged( 198 BlinkTestController::Get()->OnLayoutTestRuntimeFlagsChanged(
197 render_process_id_, changed_layout_test_runtime_flags); 199 render_process_id_, changed_layout_test_runtime_flags);
198 } 200 }
199 201
200 void LayoutTestMessageFilter::OnTestFinishedInSecondaryRenderer() { 202 void LayoutTestMessageFilter::OnTestFinishedInSecondaryRenderer() {
201 BlinkTestController::Get()->OnTestFinishedInSecondaryRenderer(); 203 BlinkTestController::Get()->OnTestFinishedInSecondaryRenderer();
202 } 204 }
203 205
204 } // namespace content 206 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698