diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 09:08:44 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 09:08:44 +0000 |
commit | ca4460e32b86f405c55b68c4a4997b1cb3cd8e80 (patch) | |
tree | d4db6f9ced163f73b0c9efd04299e805fe64a58b /chromeos | |
parent | 1120890422119b13f35e9ce56b5b90592cf350e4 (diff) | |
download | chromium_src-ca4460e32b86f405c55b68c4a4997b1cb3cd8e80.zip chromium_src-ca4460e32b86f405c55b68c4a4997b1cb3cd8e80.tar.gz chromium_src-ca4460e32b86f405c55b68c4a4997b1cb3cd8e80.tar.bz2 |
Fix clang compile failure in chromeos::SMSClient
BUG=None
TEST=try -b linux_chromeos_clang
Review URL: https://chromiumcodereview.appspot.com/10535127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r-- | chromeos/dbus/sms_client.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chromeos/dbus/sms_client.cc b/chromeos/dbus/sms_client.cc index d923d8f..72df74d 100644 --- a/chromeos/dbus/sms_client.cc +++ b/chromeos/dbus/sms_client.cc @@ -52,7 +52,8 @@ class SMSClientImpl : public SMSClient { void OnGetAll(const GetAllCallback& callback, dbus::Response* response) { if (!response) { // Must invoke the callback, even if there is no message. - callback.Run(base::DictionaryValue()); + base::DictionaryValue empty_dictionary; + callback.Run(empty_dictionary); return; } dbus::MessageReader reader(response); @@ -60,7 +61,8 @@ class SMSClientImpl : public SMSClient { base::DictionaryValue* dictionary_value = NULL; if (!value.get() || !value->GetAsDictionary(&dictionary_value)) { LOG(WARNING) << "Invalid response: " << response->ToString(); - callback.Run(base::DictionaryValue()); + base::DictionaryValue empty_dictionary; + callback.Run(empty_dictionary); return; } callback.Run(*dictionary_value); |