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

Unified Diff: chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc

Issue 385263004: Get rid of some uses of CreateIntegerValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/system/automatic_reboot_manager_unittest.cc
diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc b/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
index d726218b6c8c7b3ee7159fd9fe2331db1224c841..70c431e8f93451df071767c77c98683b45b21966 100644
--- a/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
+++ b/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
@@ -409,7 +409,7 @@ void AutomaticRebootManagerBasicTest::SetUptimeLimit(
} else {
local_state_.SetManagedPref(
prefs::kUptimeLimit,
- base::Value::CreateIntegerValue(limit.InSeconds()));
+ new base::FundamentalValue(static_cast<int>(limit.InSeconds())));
}
task_runner_->RunUntilIdle();
EXPECT_EQ(expect_reboot ? 1 : 0,

Powered by Google App Engine
This is Rietveld 408576698