summaryrefslogtreecommitdiffstats
path: root/ui/gfx/ozone/surface_factory_ozone.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/ozone/surface_factory_ozone.cc')
-rw-r--r--ui/gfx/ozone/surface_factory_ozone.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/ui/gfx/ozone/surface_factory_ozone.cc b/ui/gfx/ozone/surface_factory_ozone.cc
index 5ba8de0..a43c025 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_;
}