Index: gpu/tools/compositor_model_bench/compositor_model_bench.cc |
diff --git a/gpu/tools/compositor_model_bench/compositor_model_bench.cc b/gpu/tools/compositor_model_bench/compositor_model_bench.cc |
index 804239215eea018af359fd6e445bb54892e79d76..1160ff70891e85597b35b9f794998f23d5a776a0 100644 |
--- a/gpu/tools/compositor_model_bench/compositor_model_bench.cc |
+++ b/gpu/tools/compositor_model_bench/compositor_model_bench.cc |
@@ -86,7 +86,7 @@ class Simulator { |
// If the name of the file wasn't ASCII, this will give an empty simulation |
// name, but that's not really harmful (we'll still warn about it though.) |
spec.simulation_name = path.BaseName().RemoveExtension().MaybeAsASCII(); |
- if (spec.simulation_name == "") { |
+ if (spec.simulation_name.empty()) { |
LOG(WARNING) << "Simulation for path " << path.LossyDisplayName() << |
" will have a blank simulation name, since the file name isn't ASCII"; |
} |