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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 551098: Turn on session storage by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/render_thread.h" 5 #include "chrome/renderer/render_thread.h"
6 6
7 #include <v8.h> 7 #include <v8.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 754
755 WebRuntimeFeatures::enableApplicationCache( 755 WebRuntimeFeatures::enableApplicationCache(
756 !command_line.HasSwitch(switches::kDisableApplicationCache)); 756 !command_line.HasSwitch(switches::kDisableApplicationCache));
757 757
758 WebRuntimeFeatures::enableNotifications( 758 WebRuntimeFeatures::enableNotifications(
759 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); 759 !command_line.HasSwitch(switches::kDisableDesktopNotifications));
760 760
761 WebRuntimeFeatures::enableLocalStorage( 761 WebRuntimeFeatures::enableLocalStorage(
762 !command_line.HasSwitch(switches::kDisableLocalStorage)); 762 !command_line.HasSwitch(switches::kDisableLocalStorage));
763 WebRuntimeFeatures::enableSessionStorage( 763 WebRuntimeFeatures::enableSessionStorage(
764 command_line.HasSwitch(switches::kEnableSessionStorage)); 764 !command_line.HasSwitch(switches::kDisableSessionStorage));
765 765
766 WebRuntimeFeatures::enableIndexedDatabase( 766 WebRuntimeFeatures::enableIndexedDatabase(
767 command_line.HasSwitch(switches::kEnableIndexedDatabase)); 767 command_line.HasSwitch(switches::kEnableIndexedDatabase));
768 768
769 WebRuntimeFeatures::enableGeolocation( 769 WebRuntimeFeatures::enableGeolocation(
770 command_line.HasSwitch(switches::kEnableGeolocation)); 770 command_line.HasSwitch(switches::kEnableGeolocation));
771 } 771 }
772 772
773 void RenderThread::IdleHandler() { 773 void RenderThread::IdleHandler() {
774 #if defined(OS_WIN) && defined(USE_TCMALLOC) 774 #if defined(OS_WIN) && defined(USE_TCMALLOC)
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct); 872 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct);
873 } 873 }
874 874
875 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { 875 void RenderThread::OnSpellCheckWordAdded(const std::string& word) {
876 spellchecker_->WordAdded(word); 876 spellchecker_->WordAdded(word);
877 } 877 }
878 878
879 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { 879 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) {
880 spellchecker_->EnableAutoSpellCorrect(enable); 880 spellchecker_->EnableAutoSpellCorrect(enable);
881 } 881 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698