Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 ENABLE_AUTOFILL_DIALOG |
|
Dan Beam
2013/02/21 22:29:01
should this be:
#if defined(ENABLE_AUTOFILL_DIA
aruslan
2013/02/21 22:49:28
#if defined(ENABLE_AUTOFILL_DIALOG) it is, support
| |
| 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 Loading... | |
| 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 } |
| OLD | NEW |