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 "chrome/browser/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 #elif !defined(OS_CHROMEOS) | 490 #elif !defined(OS_CHROMEOS) |
491 // CRLSetFetcher attempts to load a CRL set from either the local disk or | 491 // CRLSetFetcher attempts to load a CRL set from either the local disk or |
492 // network. | 492 // network. |
493 // For Chrome OS this registration is delayed until user login. | 493 // For Chrome OS this registration is delayed until user login. |
494 g_browser_process->crl_set_fetcher()->StartInitialLoad(cus, path); | 494 g_browser_process->crl_set_fetcher()->StartInitialLoad(cus, path); |
495 // Registration of the EV Whitelist component here is not necessary for: | 495 // Registration of the EV Whitelist component here is not necessary for: |
496 // 1. Android: Because it currently does not have the EV indicator. | 496 // 1. Android: Because it currently does not have the EV indicator. |
497 // 2. Chrome OS: On Chrome OS this registration is delayed until user login. | 497 // 2. Chrome OS: On Chrome OS this registration is delayed until user login. |
498 RegisterEVWhitelistComponent(cus, path); | 498 RegisterEVWhitelistComponent(cus, path); |
499 | 499 |
500 // Registration of the STH set fetcher here is not done for: | 500 // Note: This is behind a base::Feature to verify whether it causes a |
501 // Android: Because the story around CT on Mobile is not finalized yet. | 501 // suspected startup regression. See: http://crbug.com/626676 |
502 // Chrome OS: On Chrome OS this registration is delayed until user login. | 502 if (base::FeatureList::IsEnabled(features::kSTHSetComponent)) { |
503 RegisterSTHSetComponent(cus, path); | 503 // Registration of the STH set fetcher here is not done for: |
| 504 // Android: Because the story around CT on Mobile is not finalized yet. |
| 505 // Chrome OS: On Chrome OS this registration is delayed until user login. |
| 506 RegisterSTHSetComponent(cus, path); |
| 507 } |
504 #endif // defined(OS_ANDROID) | 508 #endif // defined(OS_ANDROID) |
505 RegisterOriginTrialsComponent(cus, path); | 509 RegisterOriginTrialsComponent(cus, path); |
506 | 510 |
507 RegisterFileTypePoliciesComponent(cus, path); | 511 RegisterFileTypePoliciesComponent(cus, path); |
508 } | 512 } |
509 | 513 |
510 #if defined(OS_WIN) | 514 #if defined(OS_WIN) |
511 #if defined(GOOGLE_CHROME_BUILD) | 515 #if defined(GOOGLE_CHROME_BUILD) |
512 RegisterSwReporterComponent(cus); | 516 RegisterSwReporterComponent(cus); |
513 #endif // defined(GOOGLE_CHROME_BUILD) | 517 #endif // defined(GOOGLE_CHROME_BUILD) |
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 chromeos::CrosSettings::Shutdown(); | 2038 chromeos::CrosSettings::Shutdown(); |
2035 #endif // defined(OS_CHROMEOS) | 2039 #endif // defined(OS_CHROMEOS) |
2036 #endif // defined(OS_ANDROID) | 2040 #endif // defined(OS_ANDROID) |
2037 } | 2041 } |
2038 | 2042 |
2039 // Public members: | 2043 // Public members: |
2040 | 2044 |
2041 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 2045 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
2042 chrome_extra_parts_.push_back(parts); | 2046 chrome_extra_parts_.push_back(parts); |
2043 } | 2047 } |
OLD | NEW |