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

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, 3 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
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/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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 // Also find plugins in a user-specific plugins dir, 792 // Also find plugins in a user-specific plugins dir,
792 // e.g. ~/.config/chromium/Plugins. 793 // e.g. ~/.config/chromium/Plugins.
793 FilePath user_data_dir; 794 FilePath user_data_dir;
794 if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) { 795 if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
795 plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins")); 796 plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins"));
796 } 797 }
797 #endif 798 #endif
798 799
799 if (local_state_->IsManagedPreference(prefs::kDefaultBrowserSettingEnabled)) 800 if (local_state_->IsManagedPreference(prefs::kDefaultBrowserSettingEnabled))
800 ApplyDefaultBrowserPolicy(); 801 ApplyDefaultBrowserPolicy();
802
803 PluginFinder::GetInstance()->Init();
801 } 804 }
802 805
803 void BrowserProcessImpl::CreateIconManager() { 806 void BrowserProcessImpl::CreateIconManager() {
804 DCHECK(!created_icon_manager_ && icon_manager_.get() == NULL); 807 DCHECK(!created_icon_manager_ && icon_manager_.get() == NULL);
805 created_icon_manager_ = true; 808 created_icon_manager_ = true;
806 icon_manager_.reset(new IconManager); 809 icon_manager_.reset(new IconManager);
807 } 810 }
808 811
809 void BrowserProcessImpl::CreateIntranetRedirectDetector() { 812 void BrowserProcessImpl::CreateIntranetRedirectDetector() {
810 DCHECK(intranet_redirect_detector_.get() == NULL); 813 DCHECK(intranet_redirect_detector_.get() == NULL);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 } 940 }
938 941
939 void BrowserProcessImpl::OnAutoupdateTimer() { 942 void BrowserProcessImpl::OnAutoupdateTimer() {
940 if (CanAutorestartForUpdate()) { 943 if (CanAutorestartForUpdate()) {
941 DLOG(WARNING) << "Detected update. Restarting browser."; 944 DLOG(WARNING) << "Detected update. Restarting browser.";
942 RestartBackgroundInstance(); 945 RestartBackgroundInstance();
943 } 946 }
944 } 947 }
945 948
946 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 949 #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') | chrome/browser/plugin_finder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698