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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 340067: database_dispatcher_host changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Addressed Michael's latest comments. Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/renderer_host/database_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/browser_render_process_host.cc
===================================================================
--- chrome/browser/renderer_host/browser_render_process_host.cc (revision 31365)
+++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
@@ -547,7 +547,6 @@
switches::kSimpleDataSource,
switches::kEnableBenchmarking,
switches::kInternalNaCl,
- switches::kEnableDatabases,
switches::kDisableByteRangeSupport,
switches::kDisableWebSockets,
switches::kDisableLocalStorage,
@@ -564,12 +563,27 @@
#endif
};
+ // Propagate the following switches to the renderer command line (along
+ // with any associated values) only if we're not in incognito mode.
+ static const char* const not_otr_switch_names[] = {
+ switches::kEnableDatabases,
+ };
+
for (size_t i = 0; i < arraysize(switch_names); ++i) {
if (browser_cmd.HasSwitch(switch_names[i])) {
renderer_cmd->AppendSwitchWithValue(switch_names[i],
browser_cmd.GetSwitchValueASCII(switch_names[i]));
}
}
+
+ if (!profile()->IsOffTheRecord()) {
+ for (size_t i = 0; i < arraysize(not_otr_switch_names); ++i) {
+ if (browser_cmd.HasSwitch(not_otr_switch_names[i])) {
+ renderer_cmd->AppendSwitchWithValue(not_otr_switch_names[i],
+ browser_cmd.GetSwitchValueASCII(not_otr_switch_names[i]));
+ }
+ }
+ }
}
#if defined(OS_WIN)
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/renderer_host/database_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698