Index: ui/gfx/ozone/surface_factory_ozone.cc |
diff --git a/ui/gfx/ozone/surface_factory_ozone.cc b/ui/gfx/ozone/surface_factory_ozone.cc |
index da89771a5013f4de1c929f8c59ecaaf4f0dde42f..d52a51deeceabedbaa169a8c87dd31fc6d0f4c8e 100644 |
--- a/ui/gfx/ozone/surface_factory_ozone.cc |
+++ b/ui/gfx/ozone/surface_factory_ozone.cc |
@@ -46,20 +46,7 @@ SurfaceFactoryOzone::~SurfaceFactoryOzone() { |
} |
SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() { |
- if (!impl_) { |
- const char kOzoneFileSurface[] = "ozone-dump-file"; |
- CommandLine* cmd = CommandLine::ForCurrentProcess(); |
- if (cmd->HasSwitch(kOzoneFileSurface)) { |
- base::FilePath location = cmd->GetSwitchValuePath(kOzoneFileSurface); |
- if (location.empty()) |
- location = base::FilePath("/dev/null"); |
- impl_ = new FileSurfaceFactoryOzone(location); |
- } else { |
- LOG(WARNING) << "No SurfaceFactoryOzone implementation set. Using default" |
- " gfx::SoftwareSurfaceFactoryOzone."; |
- impl_ = new SoftwareSurfaceFactoryOzone(); |
- } |
- } |
+ CHECK(impl_) << "No SurfaceFactoryOzone implementation set."; |
return impl_; |
} |