Index: cloud_print/service/win/chrome_launcher.cc |
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc |
index 1d7b26d6bd068ec869c9df5412bc564b31f2b5ed..6e3366ab6f8f80ccc38d4f38315f91d93393ef2a 100644 |
--- a/cloud_print/service/win/chrome_launcher.cc |
+++ b/cloud_print/service/win/chrome_launcher.cc |
@@ -139,10 +139,10 @@ std::string ReadAndUpdateServiceState(const base::FilePath& directory, |
} |
// Remove everything except kCloudPrintRoot. |
- base::Value* cloud_print_root = NULL; |
+ scoped_ptr<base::Value> cloud_print_root; |
dictionary->Remove(prefs::kCloudPrintRoot, &cloud_print_root); |
dictionary->Clear(); |
- dictionary->Set(prefs::kCloudPrintRoot, cloud_print_root); |
+ dictionary->Set(prefs::kCloudPrintRoot, cloud_print_root.release()); |
dictionary->SetBoolean(prefs::kCloudPrintXmppPingEnabled, true); |
if (!proxy_id.empty()) // Reuse proxy id if we already had one. |