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

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

Issue 11615034: Remove unused Flash-related code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "chrome/browser/printing/print_preview_dialog_controller.h" 57 #include "chrome/browser/printing/print_preview_dialog_controller.h"
58 #include "chrome/browser/profiles/profile_manager.h" 58 #include "chrome/browser/profiles/profile_manager.h"
59 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 59 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
60 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 60 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
61 #include "chrome/browser/shell_integration.h" 61 #include "chrome/browser/shell_integration.h"
62 #include "chrome/browser/status_icons/status_tray.h" 62 #include "chrome/browser/status_icons/status_tray.h"
63 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" 63 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h"
64 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h" 64 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h"
65 #include "chrome/browser/ui/browser_list.h" 65 #include "chrome/browser/ui/browser_list.h"
66 #include "chrome/common/chrome_constants.h" 66 #include "chrome/common/chrome_constants.h"
67 #include "chrome/common/chrome_content_client.h"
68 #include "chrome/common/chrome_notification_types.h" 67 #include "chrome/common/chrome_notification_types.h"
69 #include "chrome/common/chrome_paths.h" 68 #include "chrome/common/chrome_paths.h"
70 #include "chrome/common/chrome_switches.h" 69 #include "chrome/common/chrome_switches.h"
71 #include "chrome/common/extensions/extension_l10n_util.h" 70 #include "chrome/common/extensions/extension_l10n_util.h"
72 #include "chrome/common/extensions/extension_resource.h" 71 #include "chrome/common/extensions/extension_resource.h"
73 #include "chrome/common/pref_names.h" 72 #include "chrome/common/pref_names.h"
74 #include "chrome/common/switch_utils.h" 73 #include "chrome/common/switch_utils.h"
75 #include "chrome/common/url_constants.h" 74 #include "chrome/common/url_constants.h"
76 #include "chrome/installer/util/google_update_constants.h" 75 #include "chrome/installer/util/google_update_constants.h"
77 #include "content/public/browser/browser_thread.h" 76 #include "content/public/browser/browser_thread.h"
78 #include "content/public/browser/child_process_security_policy.h" 77 #include "content/public/browser/child_process_security_policy.h"
79 #include "content/public/browser/notification_details.h" 78 #include "content/public/browser/notification_details.h"
80 #include "content/public/browser/plugin_service.h" 79 #include "content/public/browser/plugin_service.h"
81 #include "content/public/browser/render_process_host.h" 80 #include "content/public/browser/render_process_host.h"
82 #include "content/public/browser/resource_dispatcher_host.h" 81 #include "content/public/browser/resource_dispatcher_host.h"
83 #include "content/public/common/pepper_plugin_info.h"
84 #include "extensions/common/constants.h" 82 #include "extensions/common/constants.h"
85 #include "net/socket/client_socket_pool_manager.h" 83 #include "net/socket/client_socket_pool_manager.h"
86 #include "net/url_request/url_request_context_getter.h" 84 #include "net/url_request/url_request_context_getter.h"
87 #include "ui/base/l10n/l10n_util.h" 85 #include "ui/base/l10n/l10n_util.h"
88 86
89 #if defined(ENABLE_CONFIGURATION_POLICY) 87 #if defined(ENABLE_CONFIGURATION_POLICY)
90 #include "chrome/browser/policy/browser_policy_connector.h" 88 #include "chrome/browser/policy/browser_policy_connector.h"
91 #else 89 #else
92 #include "chrome/browser/policy/policy_service_stub.h" 90 #include "chrome/browser/policy/policy_service_stub.h"
93 #endif // defined(ENABLE_CONFIGURATION_POLICY) 91 #endif // defined(ENABLE_CONFIGURATION_POLICY)
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 io_thread_.reset(new IOThread(local_state(), policy_service(), net_log_.get(), 783 io_thread_.reset(new IOThread(local_state(), policy_service(), net_log_.get(),
786 extension_event_router_forwarder_.get())); 784 extension_event_router_forwarder_.get()));
787 } 785 }
788 786
789 void BrowserProcessImpl::PreMainMessageLoopRun() { 787 void BrowserProcessImpl::PreMainMessageLoopRun() {
790 #if defined(ENABLE_PLUGINS) 788 #if defined(ENABLE_PLUGINS)
791 PluginService* plugin_service = PluginService::GetInstance(); 789 PluginService* plugin_service = PluginService::GetInstance();
792 plugin_service->SetFilter(ChromePluginServiceFilter::GetInstance()); 790 plugin_service->SetFilter(ChromePluginServiceFilter::GetInstance());
793 plugin_service->StartWatchingPlugins(); 791 plugin_service->StartWatchingPlugins();
794 792
795 // Register the internal Flash if available.
796 FilePath path;
797 if (!CommandLine::ForCurrentProcess()->HasSwitch(
798 switches::kDisableInternalFlash) &&
799 PathService::Get(chrome::FILE_FLASH_PLUGIN_EXISTING, &path)) {
800 plugin_service->AddExtraPluginPath(path);
801 }
802
803 // Register bundled Pepper Flash if available.
804 content::PepperPluginInfo plugin;
805 bool add_at_beginning = false;
806 chrome::ChromeContentClient* content_client =
807 static_cast<chrome::ChromeContentClient*>(content::GetContentClient());
808 if (content_client->GetBundledFieldTrialPepperFlash(&plugin,
809 &add_at_beginning)) {
810 plugin_service->RegisterInternalPlugin(plugin.ToWebPluginInfo(),
811 add_at_beginning);
812 }
813
814 #if defined(OS_POSIX) 793 #if defined(OS_POSIX)
815 // Also find plugins in a user-specific plugins dir, 794 // Also find plugins in a user-specific plugins dir,
816 // e.g. ~/.config/chromium/Plugins. 795 // e.g. ~/.config/chromium/Plugins.
817 FilePath user_data_dir; 796 FilePath user_data_dir;
818 if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) { 797 if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
819 plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins")); 798 plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins"));
820 } 799 }
821 #endif 800 #endif
822 801
823 #endif // defined(ENABLE_PLUGINS) 802 #endif // defined(ENABLE_PLUGINS)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 } 959 }
981 960
982 void BrowserProcessImpl::OnAutoupdateTimer() { 961 void BrowserProcessImpl::OnAutoupdateTimer() {
983 if (CanAutorestartForUpdate()) { 962 if (CanAutorestartForUpdate()) {
984 DLOG(WARNING) << "Detected update. Restarting browser."; 963 DLOG(WARNING) << "Detected update. Restarting browser.";
985 RestartBackgroundInstance(); 964 RestartBackgroundInstance();
986 } 965 }
987 } 966 }
988 967
989 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 968 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/common/chrome_paths.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698