Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5730)

Unified Diff: chromecast/common/chromecast_config.cc

Issue 603243003: Chromecast: provides a method to check if config has been set by user. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/common/chromecast_config.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chromecast/common/chromecast_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698