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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 12054003: Add an API to component_updater that asks to do an update check "now". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move commandline check Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_configurator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #if defined(TOOLKIT_GTK) 7 #if defined(TOOLKIT_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // file IO to know you existing component version. 478 // file IO to know you existing component version.
479 RegisterRecoveryComponent(cus, g_browser_process->local_state()); 479 RegisterRecoveryComponent(cus, g_browser_process->local_state());
480 RegisterPepperFlashComponent(cus); 480 RegisterPepperFlashComponent(cus);
481 RegisterSwiftShaderComponent(cus); 481 RegisterSwiftShaderComponent(cus);
482 482
483 // CRLSetFetcher attempts to load a CRL set from either the local disk or 483 // CRLSetFetcher attempts to load a CRL set from either the local disk or
484 // network. 484 // network.
485 if (!command_line.HasSwitch(switches::kDisableCRLSets)) 485 if (!command_line.HasSwitch(switches::kDisableCRLSets))
486 g_browser_process->crl_set_fetcher()->StartInitialLoad(cus); 486 g_browser_process->crl_set_fetcher()->StartInitialLoad(cus);
487 487
488 if (command_line.HasSwitch(switches::kEnablePnacl)) 488 RegisterPnaclComponent(cus, command_line);
489 RegisterPnaclComponent(cus);
490 489
491 cus->Start(); 490 cus->Start();
492 } 491 }
493 492
494 bool ProcessSingletonNotificationCallback( 493 bool ProcessSingletonNotificationCallback(
495 const CommandLine& command_line, 494 const CommandLine& command_line,
496 const base::FilePath& current_directory) { 495 const base::FilePath& current_directory) {
497 // Drop the request if the browser process is already in shutdown path. 496 // Drop the request if the browser process is already in shutdown path.
498 if (!g_browser_process || g_browser_process->IsShuttingDown()) 497 if (!g_browser_process || g_browser_process->IsShuttingDown())
499 return false; 498 return false;
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 if (base::win::GetVersion() <= base::win::VERSION_XP) 1782 if (base::win::GetVersion() <= base::win::VERSION_XP)
1784 uma_name += "_XP"; 1783 uma_name += "_XP";
1785 1784
1786 uma_name += "_PreRead_"; 1785 uma_name += "_PreRead_";
1787 uma_name += pre_read_percentage; 1786 uma_name += pre_read_percentage;
1788 AddPreReadHistogramTime(uma_name.c_str(), time); 1787 AddPreReadHistogramTime(uma_name.c_str(), time);
1789 } 1788 }
1790 #endif 1789 #endif
1791 #endif 1790 #endif
1792 } 1791 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698