| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 std::map<base::string16, bool>::iterator gstate_it = | 583 std::map<base::string16, bool>::iterator gstate_it = |
| 584 plugin_group_state_.find(*it); | 584 plugin_group_state_.find(*it); |
| 585 if (gstate_it != plugin_group_state_.end()) | 585 if (gstate_it != plugin_group_state_.end()) |
| 586 enabled = gstate_it->second; | 586 enabled = gstate_it->second; |
| 587 summary->SetBoolean("enabled", enabled); | 587 summary->SetBoolean("enabled", enabled); |
| 588 plugins_list->Append(summary); | 588 plugins_list->Append(summary); |
| 589 } | 589 } |
| 590 } | 590 } |
| 591 | 591 |
| 592 void PluginPrefs::NotifyPluginStatusChanged() { | 592 void PluginPrefs::NotifyPluginStatusChanged() { |
| 593 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 593 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 594 content::NotificationService::current()->Notify( | 594 content::NotificationService::current()->Notify( |
| 595 chrome::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED, | 595 chrome::NOTIFICATION_PLUGIN_ENABLE_STATUS_CHANGED, |
| 596 content::Source<Profile>(profile_), | 596 content::Source<Profile>(profile_), |
| 597 content::NotificationService::NoDetails()); | 597 content::NotificationService::NoDetails()); |
| 598 } | 598 } |
| OLD | NEW |