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

Side by Side Diff: chrome/browser/plugins/plugin_prefs.cc

Issue 1110333002: [chrome/browser/plugins] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_finder.cc ('k') | chrome/browser/plugins/plugin_status_pref_setter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698