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

Unified Diff: chromecast/common/chromecast_config.h

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 | « no previous file | chromecast/common/chromecast_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/common/chromecast_config.h
diff --git a/chromecast/common/chromecast_config.h b/chromecast/common/chromecast_config.h
index 5cd6a1ae06fccffa47a4b1abf8b378fa1f899ef9..23482c6be4d876fa4f3f7ca8d54d10b14a740003 100644
--- a/chromecast/common/chromecast_config.h
+++ b/chromecast/common/chromecast_config.h
@@ -37,18 +37,21 @@ class ChromecastConfig {
// Saves configs into configuration file.
void Save() const;
- // Returns string value for key, if present.
+ // Returns string value for |key|, if present.
const std::string GetValue(const std::string& key) const;
- // Returns integer value for key, if present.
+ // Returns integer value for |key|, if present.
const int GetIntValue(const std::string& key) const;
- // Sets new string value for key.
+ // Sets new string value for |key|.
void SetValue(const std::string& key, const std::string& value) const;
- // Sets new int value for key.
+ // Sets new int value for |key|.
void SetIntValue(const std::string& key, int value) const;
+ // Whether or not a value has been set for |key|.
+ bool HasValue(const std::string& key) const;
+
scoped_refptr<base::SequencedWorkerPool> worker_pool() const {
return worker_pool_;
}
« no previous file with comments | « no previous file | chromecast/common/chromecast_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698