Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 namespace { | 239 namespace { |
| 240 | 240 |
| 241 #if defined(OS_CHROMEOS) | 241 #if defined(OS_CHROMEOS) |
| 242 const int kOneHourInMs = 60 * 60 * 1000; | 242 const int kOneHourInMs = 60 * 60 * 1000; |
| 243 const int kThreeHoursInMs = 180 * 60 * 1000; | 243 const int kThreeHoursInMs = 180 * 60 * 1000; |
| 244 #endif | 244 #endif |
| 245 | 245 |
| 246 const char kURL[] = "http://example.com"; | 246 const char kURL[] = "http://example.com"; |
| 247 const char kCookieValue[] = "converted=true"; | 247 const char kCookieValue[] = "converted=true"; |
| 248 // Assigned to Philip J. Fry to fix eventually. | 248 // Assigned to Philip J. Fry to fix eventually. |
| 249 // TODO(maksims): remove architecture check | |
| 250 // in the future. https://crbug.com/619828 | |
|
pastarmovj
2016/06/14 15:22:48
What I meant however was to remove the #ifdef comp
| |
| 251 #if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) | |
| 249 const char kCookieOptions[] = ";expires=Wed Jan 01 3000 00:00:00 GMT"; | 252 const char kCookieOptions[] = ";expires=Wed Jan 01 3000 00:00:00 GMT"; |
| 253 #else | |
| 254 const char kCookieOptions[] = ";expires=Wed Jan 01 2038 00:00:00 GMT"; | |
| 255 #endif | |
| 250 | 256 |
| 251 const base::FilePath::CharType kTestExtensionsDir[] = | 257 const base::FilePath::CharType kTestExtensionsDir[] = |
| 252 FILE_PATH_LITERAL("extensions"); | 258 FILE_PATH_LITERAL("extensions"); |
| 253 const base::FilePath::CharType kGoodCrxName[] = FILE_PATH_LITERAL("good.crx"); | 259 const base::FilePath::CharType kGoodCrxName[] = FILE_PATH_LITERAL("good.crx"); |
| 254 const base::FilePath::CharType kAdBlockCrxName[] = | 260 const base::FilePath::CharType kAdBlockCrxName[] = |
| 255 FILE_PATH_LITERAL("adblock.crx"); | 261 FILE_PATH_LITERAL("adblock.crx"); |
| 256 const base::FilePath::CharType kHostedAppCrxName[] = | 262 const base::FilePath::CharType kHostedAppCrxName[] = |
| 257 FILE_PATH_LITERAL("hosted_app.crx"); | 263 FILE_PATH_LITERAL("hosted_app.crx"); |
| 258 | 264 |
| 259 const char kGoodCrxId[] = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; | 265 const char kGoodCrxId[] = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; |
| (...skipping 3837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4097 | 4103 |
| 4098 SetEmptyPolicy(); | 4104 SetEmptyPolicy(); |
| 4099 // Policy not set. | 4105 // Policy not set. |
| 4100 CheckSystemTimezoneAutomaticDetectionPolicyUnset(); | 4106 CheckSystemTimezoneAutomaticDetectionPolicyUnset(); |
| 4101 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false)); | 4107 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false)); |
| 4102 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests()); | 4108 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests()); |
| 4103 } | 4109 } |
| 4104 #endif // defined(OS_CHROMEOS) | 4110 #endif // defined(OS_CHROMEOS) |
| 4105 | 4111 |
| 4106 } // namespace policy | 4112 } // namespace policy |
| OLD | NEW |