File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,15 @@ void ShellContentRendererClient::RenderThreadStarted() {
115
115
base::SetCurrentDirectory (
116
116
command_line->GetSwitchValuePath (switches::kWorkingDirectory ));
117
117
}
118
+
119
+ if (command_line->HasSwitch (switches::kDomStorageQuota )) {
120
+ std::string quota_str = command_line->GetSwitchValueASCII (switches::kDomStorageQuota );
121
+ int quota = 0 ;
122
+ if (base::StringToInt (quota_str, "a) && quota > 0 ) {
123
+ content::DOMStorageMap::SetQuotaOverride (quota * 1024 * 1024 );
124
+ }
125
+ }
126
+
118
127
#if 0
119
128
int argc = 1;
120
129
char* argv[] = { const_cast<char*>("node"), NULL, NULL };
@@ -135,13 +144,6 @@ void ShellContentRendererClient::RenderThreadStarted() {
135
144
snapshot_path = command_line->GetSwitchValuePath(switches::kSnapshot).AsUTF8Unsafe();
136
145
}
137
146
138
- if (command_line->HasSwitch(switches::kDomStorageQuota)) {
139
- std::string quota_str = command_line->GetSwitchValueASCII(switches::kDomStorageQuota);
140
- int quota = 0;
141
- if (base::StringToInt(quota_str, "a) && quota > 0) {
142
- content::DOMStorageMap::SetQuotaOverride(quota * 1024 * 1024);
143
- }
144
- }
145
147
// Initialize node after render thread is started.
146
148
if (!snapshot_path.empty()) {
147
149
v8::V8::Initialize(); //FIXME
You can’t perform that action at this time.
0 commit comments