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

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

Issue 11366127: Add a runtime flag for interactive autocomplete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: isherman@ review Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_render_process_observer.h" 5 #include "chrome/renderer/chrome_render_process_observer.h"
6 6
7 #include "base/allocator/allocator_extension.h" 7 #include "base/allocator/allocator_extension.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 clear_cache_pending_(false) { 159 clear_cache_pending_(false) {
160 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 160 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
161 if (command_line.HasSwitch(switches::kEnableWatchdog)) { 161 if (command_line.HasSwitch(switches::kEnableWatchdog)) {
162 // TODO(JAR): Need to implement renderer IO msgloop watchdog. 162 // TODO(JAR): Need to implement renderer IO msgloop watchdog.
163 } 163 }
164 164
165 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { 165 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) {
166 base::StatisticsRecorder::set_dump_on_exit(true); 166 base::StatisticsRecorder::set_dump_on_exit(true);
167 } 167 }
168 168
169 #if defined(TOOLKIT_VIEWS)
170 WebRuntimeFeatures::enableRequestAutocomplete(
171 command_line.HasSwitch(switches::kEnableInteractiveAutocomplete) ||
172 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
173 #endif
174
169 RenderThread* thread = RenderThread::Get(); 175 RenderThread* thread = RenderThread::Get();
170 resource_delegate_.reset(new RendererResourceDelegate()); 176 resource_delegate_.reset(new RendererResourceDelegate());
171 thread->SetResourceDispatcherDelegate(resource_delegate_.get()); 177 thread->SetResourceDispatcherDelegate(resource_delegate_.get());
172 178
173 // Configure modules that need access to resources. 179 // Configure modules that need access to resources.
174 net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider); 180 net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider);
175 181
176 #if defined(OS_WIN) 182 #if defined(OS_WIN)
177 // Need to patch a few functions for font loading to work correctly. 183 // Need to patch a few functions for font loading to work correctly.
178 FilePath pdf; 184 FilePath pdf;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 if (clear_cache_pending_) { 315 if (clear_cache_pending_) {
310 clear_cache_pending_ = false; 316 clear_cache_pending_ = false;
311 WebCache::clear(); 317 WebCache::clear();
312 } 318 }
313 } 319 }
314 320
315 const RendererContentSettingRules* 321 const RendererContentSettingRules*
316 ChromeRenderProcessObserver::content_setting_rules() const { 322 ChromeRenderProcessObserver::content_setting_rules() const {
317 return &content_setting_rules_; 323 return &content_setting_rules_;
318 } 324 }
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