File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,14 @@ void ShellContentRendererClient::RenderThreadStarted() {
166
166
command_line->GetSwitchValuePath (switches::kWorkingDirectory ));
167
167
}
168
168
169
+ if (command_line->HasSwitch (switches::kDomStorageQuota )) {
170
+ std::string quota_str = command_line->GetSwitchValueASCII (switches::kDomStorageQuota );
171
+ int quota = 0 ;
172
+ if (base::StringToInt (quota_str, "a) && quota > 0 ) {
173
+ content::DOMStorageMap::SetQuotaOverride (quota * 1024 * 1024 );
174
+ }
175
+ }
176
+
169
177
if (command_line->HasSwitch (extensions::switches::kExtensionProcess )) {
170
178
extensions_client_.reset (CreateExtensionsClient ());
171
179
extensions::ExtensionsClient::Set (extensions_client_.get ());
@@ -181,16 +189,6 @@ void ShellContentRendererClient::RenderThreadStarted() {
181
189
thread->AddObserver (extension_dispatcher_.get ());
182
190
}
183
191
184
- #if 0
185
- if (command_line->HasSwitch(switches::kDomStorageQuota)) {
186
- std::string quota_str = command_line->GetSwitchValueASCII(switches::kDomStorageQuota);
187
- int quota = 0;
188
- if (base::StringToInt(quota_str, "a) && quota > 0) {
189
- content::DOMStorageMap::SetQuotaOverride(quota * 1024 * 1024);
190
- }
191
- }
192
- #endif // 0
193
-
194
192
// Start observers.
195
193
shell_observer_.reset (new ShellRenderProcessObserver ());
196
194
You can’t perform that action at this time.
0 commit comments