diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 01:14:58 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 01:14:58 +0000 |
commit | 2e2a5404a58ae577ebfa65e6f7575eec8cd393cf (patch) | |
tree | 3fc7dfe6b7da820cc05319f17c4316c54151385e /chrome/common | |
parent | 5d56ba000c0f51a91632708a27cb25367120a61d (diff) | |
download | chromium_src-2e2a5404a58ae577ebfa65e6f7575eec8cd393cf.zip chromium_src-2e2a5404a58ae577ebfa65e6f7575eec8cd393cf.tar.gz chromium_src-2e2a5404a58ae577ebfa65e6f7575eec8cd393cf.tar.bz2 |
Adds a command line switch to enable the appcache, and plumb the switch throughto preferences and webcore settings.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/164306
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 3 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 | ||||
-rw-r--r-- | chrome/common/render_messages.h | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index b0a59bf..9331f66 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -569,4 +569,7 @@ const wchar_t kGoogleInternalCrashReporting[] = // Enables HTML5 DB support. const wchar_t kEnableDatabases[] = L"enable-databases"; + +// Enable ApplicationCache. Still mostly not there. +const wchar_t kEnableApplicationCache[] = L"enable-application-cache"; } // namespace switches diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 3d47067..d109593 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -223,6 +223,8 @@ extern const wchar_t kDisableCustomJumpList[]; extern const wchar_t kGoogleInternalCrashReporting[]; extern const wchar_t kEnableDatabases[]; + +extern const wchar_t kEnableApplicationCache[]; } // namespace switches #endif // CHROME_COMMON_CHROME_SWITCHES_H_ diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 63d91c0..fefa3ac 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -1624,6 +1624,7 @@ struct ParamTraits<WebPreferences> { WriteParam(m, p.xss_auditor_enabled); WriteParam(m, p.local_storage_enabled); WriteParam(m, p.session_storage_enabled); + WriteParam(m, p.application_cache_enabled); } static bool Read(const Message* m, void** iter, param_type* p) { return @@ -1656,7 +1657,8 @@ struct ParamTraits<WebPreferences> { ReadParam(m, iter, &p->remote_fonts_enabled) && ReadParam(m, iter, &p->xss_auditor_enabled) && ReadParam(m, iter, &p->local_storage_enabled) && - ReadParam(m, iter, &p->session_storage_enabled); + ReadParam(m, iter, &p->session_storage_enabled) && + ReadParam(m, iter, &p->application_cache_enabled); } static void Log(const param_type& p, std::wstring* l) { l->append(L"<WebPreferences>"); |