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

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

Issue 13183: Reupload of 12418 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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 | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/browser_resources.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <windows.h> 5 #include <windows.h>
6 #include <shellapi.h> 6 #include <shellapi.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 win_util::ScopedCOMInitializer com_initializer; 529 win_util::ScopedCOMInitializer com_initializer;
530 530
531 // Init the RLZ library. This just binds the dll and schedules a task on the 531 // Init the RLZ library. This just binds the dll and schedules a task on the
532 // file thread to be run sometime later. If this is the first run we record 532 // file thread to be run sometime later. If this is the first run we record
533 // the installation event. 533 // the installation event.
534 RLZTracker::InitRlzDelayed(base::DIR_MODULE, is_first_run); 534 RLZTracker::InitRlzDelayed(base::DIR_MODULE, is_first_run);
535 535
536 // Config the network module so it has access to resources. 536 // Config the network module so it has access to resources.
537 net::NetModule::SetResourceProvider(NetResourceProvider); 537 net::NetModule::SetResourceProvider(NetResourceProvider);
538 538
539 // Register our global network handler for chrome-resource:// URLs. 539 // Register our global network handler for chrome:// URLs.
540 RegisterURLRequestChromeJob(); 540 RegisterURLRequestChromeJob();
541 541
542 browser_process->InitBrokerServices(broker_services); 542 browser_process->InitBrokerServices(broker_services);
543 543
544 // In unittest mode, this will do nothing. In normal mode, this will create 544 // In unittest mode, this will do nothing. In normal mode, this will create
545 // the global GoogleURLTracker instance, which will promptly go to sleep for 545 // the global GoogleURLTracker instance, which will promptly go to sleep for
546 // five seconds (to avoid slowing startup), and wake up afterwards to see if 546 // five seconds (to avoid slowing startup), and wake up afterwards to see if
547 // it should do anything else. If we don't cause this creation now, it won't 547 // it should do anything else. If we don't cause this creation now, it won't
548 // happen until someone else asks for the tracker, at which point we may no 548 // happen until someone else asks for the tracker, at which point we may no
549 // longer want to sleep for five seconds. 549 // longer want to sleep for five seconds.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 // The following should ONLY be called when in single threaded mode. It is 629 // The following should ONLY be called when in single threaded mode. It is
630 // unsafe to do this cleanup if other threads are still active. 630 // unsafe to do this cleanup if other threads are still active.
631 // It is also very unnecessary, so I'm only doing this in debug to satisfy 631 // It is also very unnecessary, so I'm only doing this in debug to satisfy
632 // purify. 632 // purify.
633 if (tracking_objects) 633 if (tracking_objects)
634 tracked_objects::ThreadData::ShutdownSingleThreadedCleanup(); 634 tracked_objects::ThreadData::ShutdownSingleThreadedCleanup();
635 #endif // NDEBUG 635 #endif // NDEBUG
636 636
637 return result_code; 637 return result_code;
638 } 638 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/browser_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698