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

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

Issue 10910168: Separate plugin_metadata from plugin_installer, thread-safe plugin_finder (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: .. Created 8 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/content_settings/content_settings_api.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) 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/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 #include "chrome/browser/intranet_redirect_detector.h" 35 #include "chrome/browser/intranet_redirect_detector.h"
36 #include "chrome/browser/io_thread.h" 36 #include "chrome/browser/io_thread.h"
37 #include "chrome/browser/lifetime/application_lifetime.h" 37 #include "chrome/browser/lifetime/application_lifetime.h"
38 #include "chrome/browser/metrics/metrics_service.h" 38 #include "chrome/browser/metrics/metrics_service.h"
39 #include "chrome/browser/metrics/thread_watcher.h" 39 #include "chrome/browser/metrics/thread_watcher.h"
40 #include "chrome/browser/metrics/variations/variations_service.h" 40 #include "chrome/browser/metrics/variations/variations_service.h"
41 #include "chrome/browser/net/chrome_net_log.h" 41 #include "chrome/browser/net/chrome_net_log.h"
42 #include "chrome/browser/net/crl_set_fetcher.h" 42 #include "chrome/browser/net/crl_set_fetcher.h"
43 #include "chrome/browser/net/sdch_dictionary_fetcher.h" 43 #include "chrome/browser/net/sdch_dictionary_fetcher.h"
44 #include "chrome/browser/notifications/notification_ui_manager.h" 44 #include "chrome/browser/notifications/notification_ui_manager.h"
45 #include "chrome/browser/plugins/plugin_finder.h"
45 #include "chrome/browser/policy/browser_policy_connector.h" 46 #include "chrome/browser/policy/browser_policy_connector.h"
46 #include "chrome/browser/policy/policy_service.h" 47 #include "chrome/browser/policy/policy_service.h"
47 #include "chrome/browser/prefs/browser_prefs.h" 48 #include "chrome/browser/prefs/browser_prefs.h"
48 #include "chrome/browser/prefs/pref_service.h" 49 #include "chrome/browser/prefs/pref_service.h"
49 #include "chrome/browser/prerender/prerender_tracker.h" 50 #include "chrome/browser/prerender/prerender_tracker.h"
50 #include "chrome/browser/printing/background_printing_manager.h" 51 #include "chrome/browser/printing/background_printing_manager.h"
51 #include "chrome/browser/printing/print_job_manager.h" 52 #include "chrome/browser/printing/print_job_manager.h"
52 #include "chrome/browser/printing/print_preview_tab_controller.h" 53 #include "chrome/browser/printing/print_preview_tab_controller.h"
53 #include "chrome/browser/profiles/profile_manager.h" 54 #include "chrome/browser/profiles/profile_manager.h"
54 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 55 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // Also find plugins in a user-specific plugins dir, 785 // Also find plugins in a user-specific plugins dir,
785 // e.g. ~/.config/chromium/Plugins. 786 // e.g. ~/.config/chromium/Plugins.
786 FilePath user_data_dir; 787 FilePath user_data_dir;
787 if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) { 788 if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
788 plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins")); 789 plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins"));
789 } 790 }
790 #endif 791 #endif
791 792
792 if (local_state_->IsManagedPreference(prefs::kDefaultBrowserSettingEnabled)) 793 if (local_state_->IsManagedPreference(prefs::kDefaultBrowserSettingEnabled))
793 ApplyDefaultBrowserPolicy(); 794 ApplyDefaultBrowserPolicy();
795
796 // Triggers initialization of the singleton instance on UI thread.
797 PluginFinder::GetInstance()->Init();
794 } 798 }
795 799
796 void BrowserProcessImpl::CreateIconManager() { 800 void BrowserProcessImpl::CreateIconManager() {
797 DCHECK(!created_icon_manager_ && icon_manager_.get() == NULL); 801 DCHECK(!created_icon_manager_ && icon_manager_.get() == NULL);
798 created_icon_manager_ = true; 802 created_icon_manager_ = true;
799 icon_manager_.reset(new IconManager); 803 icon_manager_.reset(new IconManager);
800 } 804 }
801 805
802 void BrowserProcessImpl::CreateIntranetRedirectDetector() { 806 void BrowserProcessImpl::CreateIntranetRedirectDetector() {
803 DCHECK(intranet_redirect_detector_.get() == NULL); 807 DCHECK(intranet_redirect_detector_.get() == NULL);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 } 934 }
931 935
932 void BrowserProcessImpl::OnAutoupdateTimer() { 936 void BrowserProcessImpl::OnAutoupdateTimer() {
933 if (CanAutorestartForUpdate()) { 937 if (CanAutorestartForUpdate()) {
934 DLOG(WARNING) << "Detected update. Restarting browser."; 938 DLOG(WARNING) << "Detected update. Restarting browser.";
935 RestartBackgroundInstance(); 939 RestartBackgroundInstance();
936 } 940 }
937 } 941 }
938 942
939 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 943 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/content_settings/content_settings_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698