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

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

Issue 12330059: Enable autofill dialog codepath on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: #if defined(X) instead of #if X; removed unused grit section. Created 7 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/browser/about_flags.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 <limits> 7 #include <limits>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/allocator/allocator_extension.h" 10 #include "base/allocator/allocator_extension.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 clear_cache_pending_(false) { 162 clear_cache_pending_(false) {
163 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 163 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
164 if (command_line.HasSwitch(switches::kEnableWatchdog)) { 164 if (command_line.HasSwitch(switches::kEnableWatchdog)) {
165 // TODO(JAR): Need to implement renderer IO msgloop watchdog. 165 // TODO(JAR): Need to implement renderer IO msgloop watchdog.
166 } 166 }
167 167
168 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { 168 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) {
169 base::StatisticsRecorder::set_dump_on_exit(true); 169 base::StatisticsRecorder::set_dump_on_exit(true);
170 } 170 }
171 171
172 #if defined(TOOLKIT_VIEWS) 172 #if defined(ENABLE_AUTOFILL_DIALOG)
173 WebRuntimeFeatures::enableRequestAutocomplete( 173 WebRuntimeFeatures::enableRequestAutocomplete(
174 command_line.HasSwitch(switches::kEnableInteractiveAutocomplete) || 174 command_line.HasSwitch(switches::kEnableInteractiveAutocomplete) ||
175 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); 175 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
176 #endif 176 #endif
177 177
178 RenderThread* thread = RenderThread::Get(); 178 RenderThread* thread = RenderThread::Get();
179 resource_delegate_.reset(new RendererResourceDelegate()); 179 resource_delegate_.reset(new RendererResourceDelegate());
180 thread->SetResourceDispatcherDelegate(resource_delegate_.get()); 180 thread->SetResourceDispatcherDelegate(resource_delegate_.get());
181 181
182 // Configure modules that need access to resources. 182 // Configure modules that need access to resources.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 if (clear_cache_pending_) { 319 if (clear_cache_pending_) {
320 clear_cache_pending_ = false; 320 clear_cache_pending_ = false;
321 WebCache::clear(); 321 WebCache::clear();
322 } 322 }
323 } 323 }
324 324
325 const RendererContentSettingRules* 325 const RendererContentSettingRules*
326 ChromeRenderProcessObserver::content_setting_rules() const { 326 ChromeRenderProcessObserver::content_setting_rules() const {
327 return &content_setting_rules_; 327 return &content_setting_rules_;
328 } 328 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698