Some style nits
authorRijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Thu, 8 Aug 2013 08:28:26 +0000 (11:28 +0300)
committerRijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Thu, 8 Aug 2013 08:28:26 +0000 (11:28 +0300)
system_setting/system_setting_api.js
system_setting/system_setting_context.cc
system_setting/system_setting_context_desktop.cc

index a2cb0c7..802080d 100644 (file)
@@ -67,4 +67,4 @@ exports.getProperty = function (type, successCallback, errorCallback) {
     '_type': systemSettingTypes[type],
     "_reply_id": id,
   }));
-}
\ No newline at end of file
+}
index a8aa742..4ee66ae 100644 (file)
@@ -42,10 +42,13 @@ void SystemSettingContext::HandleMessage(const char* message) {
     HandleSetProperty(v);
   else if (cmd == "GetProperty")
     HandleGetProperty(v);
+  else
+    std::cout << "ASSERT NOT REACHED. \n";
 }
 
 void SystemSettingContext::OnPropertyHandled(const char* reply_id,
-                                             const char* value, int ret) {
+                                             const char* value,
+                                             int ret) {
   picojson::value::object o;
   o["_reply_id"] = picojson::value(reply_id);
   if (value)
index a4f7b04..a4ad4a8 100644 (file)
@@ -19,5 +19,6 @@ void SystemSettingContext::HandleGetProperty(const picojson::value& msg) {
     (msg.get("_type").get<double>());
   const char* reply_id = msg.get("_reply_id").to_str().c_str();
 
+  // FIXME(riju) : Use correct value when desktop version is implemented
   OnPropertyHandled(reply_id, "test.png", 0);
 }