Index: chromecast/common/chromecast_config.cc |
diff --git a/chromecast/common/chromecast_config.cc b/chromecast/common/chromecast_config.cc |
index 0dc0da33af73ef0d575fc403f41fed1b658a323d..af5a591996589a020a616983f31afc26175b1600 100644 |
--- a/chromecast/common/chromecast_config.cc |
+++ b/chromecast/common/chromecast_config.cc |
@@ -138,4 +138,9 @@ void ChromecastConfig::SetIntValue(const std::string& key, int value) const { |
} |
} |
+bool ChromecastConfig::HasValue(const std::string& key) const { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return pref_service_->HasPrefPath(key.c_str()); |
+} |
+ |
} // namespace chromecast |