OLD | NEW |
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/plugins/plugin_prefs.h" | 5 #include "chrome/browser/plugins/plugin_prefs.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/pattern.h" | 17 #include "base/strings/pattern.h" |
18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
24 #include "chrome/browser/chrome_notification_types.h" | 24 #include "chrome/browser/chrome_notification_types.h" |
25 #include "chrome/browser/plugins/plugin_installer.h" | 25 #include "chrome/browser/plugins/plugin_installer.h" |
26 #include "chrome/browser/plugins/plugin_metadata.h" | 26 #include "chrome/browser/plugins/plugin_metadata.h" |
27 #include "chrome/browser/plugins/plugin_prefs_factory.h" | 27 #include "chrome/browser/plugins/plugin_prefs_factory.h" |
28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 } | 512 } |
513 } | 513 } |
514 | 514 |
515 void PluginPrefs::NotifyPluginStatusChanged() { | 515 void PluginPrefs::NotifyPluginStatusChanged() { |
516 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 516 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
517 content::NotificationService::current()->Notify( | 517 content::NotificationService::current()->Notify( |
518 chrome::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED, | 518 chrome::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED, |
519 content::Source<Profile>(profile_), | 519 content::Source<Profile>(profile_), |
520 content::NotificationService::NoDetails()); | 520 content::NotificationService::NoDetails()); |
521 } | 521 } |
OLD | NEW |