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 5ba8de0c537be90ed7e64f14adc89cded6d0de40..a43c0252193c1adf26861b5eda586943016a6c58 100644 |
--- a/ui/gfx/ozone/surface_factory_ozone.cc |
+++ b/ui/gfx/ozone/surface_factory_ozone.cc |
@@ -50,20 +50,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_; |
} |