Index: chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc |
diff --git a/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc b/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc |
index ad71e7362da5686f60cf8eaeebfa90356e4477eb..9f2519a37eb0659e3d904184d9e853ab27d2b989 100644 |
--- a/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc |
+++ b/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc |
@@ -2,6 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <stdint.h> |
+ |
+#include <limits> |
+ |
#include "base/guid.h" |
#include "base/hash.h" |
#include "base/rand_util.h" |
@@ -220,8 +224,8 @@ IN_PROC_BROWSER_TEST_F(TwoClientPasswordsSyncTest, E2E_ONLY(TwoClientAddPass)) { |
// Add one new password per profile. A unique form is created for each to |
// prevent them from overwriting each other. |
for (int i = 0; i < num_clients(); ++i) { |
- AddLogin(GetPasswordStore(i), |
- CreateTestPasswordForm(base::RandInt(0, kint32max))); |
+ AddLogin(GetPasswordStore(i), CreateTestPasswordForm(base::RandInt( |
+ 0, std::numeric_limits<int32_t>::max()))); |
} |
// Blocks and waits for password forms in all profiles to match. |