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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc

Issue 2605293002: Add WARN_UNUSED_RESULT to base::Time methods that return bool. (Closed)
Patch Set: Add comment to PexeDownloader::didReceiveResponse() Created 3 years, 11 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
Index: chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc b/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
index 7f5795953789c2322003285004dccee7617e5ad1..31842b7e597077b8721c0cd7490d939e1c6e73fc 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
@@ -10,6 +10,7 @@
#include <string>
#include <utility>
+#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "chrome/common/extensions/api/file_system_provider.h"
#include "chrome/common/extensions/api/file_system_provider_internal.h"
@@ -53,8 +54,8 @@ bool ConvertRequestValueToFileInfo(std::unique_ptr<RequestValue> value,
// Allow to pass invalid modification time, since there is no way to verify
// it easily on any earlier stage.
base::Time output_modification_time;
- base::Time::FromString(input_modification_time.c_str(),
- &output_modification_time);
+ ignore_result(base::Time::FromString(input_modification_time.c_str(),
+ &output_modification_time));
output->modification_time.reset(new base::Time(output_modification_time));
}

Powered by Google App Engine
This is Rietveld 408576698