Index: content/browser/gpu/gpu_data_manager_impl_private.cc |
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc |
index 84a226e309389759f573ceca2f795467a039ce10..6e74459f0f2d3391a4df02cc92ce4c1acd63807d 100644 |
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
@@ -513,8 +513,10 @@ void GpuDataManagerImplPrivate::Initialize() { |
} |
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kSkipGpuDataLoading)) |
+ if (command_line->HasSwitch(switches::kSkipGpuDataLoading)) { |
+ RunPostInitTasks(); |
return; |
+ } |
gpu::GPUInfo gpu_info; |
if (command_line->GetSwitchValueASCII( |
@@ -1068,6 +1070,10 @@ void GpuDataManagerImplPrivate::InitializeImpl( |
UpdateGpuSwitchingManager(gpu_info); |
UpdatePreliminaryBlacklistedFeatures(); |
+ RunPostInitTasks(); |
+} |
+ |
+void GpuDataManagerImplPrivate::RunPostInitTasks() { |
// Set initialized before running callbacks. |
is_initialized_ = true; |