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 <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
394 RegisterSwiftShaderComponent(cus); | 394 RegisterSwiftShaderComponent(cus); |
395 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent( | 395 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent( |
396 cus, command_line); | 396 cus, command_line); |
397 RegisterWidevineCdmComponent(cus); | 397 RegisterWidevineCdmComponent(cus); |
398 #endif | 398 #endif |
399 | 399 |
400 #if defined(CLD_DATA_FROM_COMPONENT) | 400 #if defined(CLD_DATA_FROM_COMPONENT) |
401 RegisterCldComponent(cus); | 401 RegisterCldComponent(cus); |
402 #endif | 402 #endif |
403 | 403 |
404 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 404 #if defined(OS_ANDROID) |
405 // The CRLSet component was enabled for some releases. This code attempts to | |
406 // delete it from the local disk of those how may have downloaded it. | |
407 g_browser_process->crl_set_fetcher()->DeleteFromDisk(); | |
408 #else | |
405 // CRLSetFetcher attempts to load a CRL set from either the local disk or | 409 // CRLSetFetcher attempts to load a CRL set from either the local disk or |
406 // network. | 410 // network. |
407 g_browser_process->crl_set_fetcher()->StartInitialLoad(cus); | 411 g_browser_process->crl_set_fetcher()->StartInitialLoad(cus); |
xiyuan
2014/07/15 07:45:43
The initial load should probably happen after the
| |
408 #elif defined(OS_ANDROID) | |
409 // The CRLSet component was enabled for some releases. This code attempts to | |
410 // delete it from the local disk of those how may have downloaded it. | |
411 g_browser_process->crl_set_fetcher()->DeleteFromDisk(); | |
412 #endif | 412 #endif |
413 | 413 |
414 #if defined(OS_WIN) | 414 #if defined(OS_WIN) |
415 ExecutePendingSwReporter(cus, g_browser_process->local_state()); | 415 ExecutePendingSwReporter(cus, g_browser_process->local_state()); |
416 #endif | 416 #endif |
417 | 417 |
418 cus->Start(); | 418 cus->Start(); |
419 } | 419 } |
420 | 420 |
421 #if !defined(OS_ANDROID) | 421 #if !defined(OS_ANDROID) |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1659 chromeos::CrosSettings::Shutdown(); | 1659 chromeos::CrosSettings::Shutdown(); |
1660 #endif | 1660 #endif |
1661 #endif | 1661 #endif |
1662 } | 1662 } |
1663 | 1663 |
1664 // Public members: | 1664 // Public members: |
1665 | 1665 |
1666 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 1666 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
1667 chrome_extra_parts_.push_back(parts); | 1667 chrome_extra_parts_.push_back(parts); |
1668 } | 1668 } |
OLD | NEW |