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

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

Issue 391064: Remove (actually, reverse meaning of) command line flag for desktop notificat... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 WebRuntimeFeatures::enableSockets( 561 WebRuntimeFeatures::enableSockets(
562 !command_line.HasSwitch(switches::kDisableWebSockets)); 562 !command_line.HasSwitch(switches::kDisableWebSockets));
563 563
564 WebRuntimeFeatures::enableDatabase( 564 WebRuntimeFeatures::enableDatabase(
565 command_line.HasSwitch(switches::kEnableDatabases)); 565 command_line.HasSwitch(switches::kEnableDatabases));
566 566
567 WebRuntimeFeatures::enableApplicationCache( 567 WebRuntimeFeatures::enableApplicationCache(
568 command_line.HasSwitch(switches::kEnableApplicationCache)); 568 command_line.HasSwitch(switches::kEnableApplicationCache));
569 569
570 #if defined(OS_WIN) 570 #if defined(OS_WIN)
571 // We don't yet support notifications on non-Windows, so hide it from pages. 571 // We don't yet support notifications on non-Windows.
572 WebRuntimeFeatures::enableNotifications( 572 WebRuntimeFeatures::enableNotifications(
573 command_line.HasSwitch(switches::kEnableDesktopNotifications)); 573 !command_line.HasSwitch(switches::kDisableDesktopNotifications));
574 #endif 574 #endif
575 575
576 WebRuntimeFeatures::enableLocalStorage( 576 WebRuntimeFeatures::enableLocalStorage(
577 !command_line.HasSwitch(switches::kDisableLocalStorage)); 577 !command_line.HasSwitch(switches::kDisableLocalStorage));
578 WebRuntimeFeatures::enableSessionStorage( 578 WebRuntimeFeatures::enableSessionStorage(
579 command_line.HasSwitch(switches::kEnableSessionStorage)); 579 command_line.HasSwitch(switches::kEnableSessionStorage));
580 } 580 }
581 581
582 void RenderThread::IdleHandler() { 582 void RenderThread::IdleHandler() {
583 // It is possible that the timer was set while the widgets were idle, 583 // It is possible that the timer was set while the widgets were idle,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 671 }
672 672
673 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { 673 void RenderThread::OnSpellCheckWordAdded(const std::string& word) {
674 spellchecker_->WordAdded(word); 674 spellchecker_->WordAdded(word);
675 } 675 }
676 676
677 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { 677 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) {
678 spellchecker_->EnableAutoSpellCorrect(enable); 678 spellchecker_->EnableAutoSpellCorrect(enable);
679 } 679 }
680 #endif 680 #endif
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