| Index: content/browser/plugin_service_impl.cc
|
| diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
|
| index e43109552f0071b84cc088cab02f74e1a2d8c711..4c52514b8eb2f52576565b84ac29765a93c49c6f 100644
|
| --- a/content/browser/plugin_service_impl.cc
|
| +++ b/content/browser/plugin_service_impl.cc
|
| @@ -99,7 +99,7 @@ void WillLoadPluginsCallback(
|
|
|
| #if defined(OS_MACOSX)
|
| void NotifyPluginsOfActivation() {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| for (PluginProcessHostIterator iter; !iter.Done(); ++iter)
|
| iter->OnAppActivation();
|
| @@ -277,7 +277,7 @@ PpapiPluginProcessHost* PluginServiceImpl::FindPpapiBrokerProcess(
|
| PluginProcessHost* PluginServiceImpl::FindOrStartNpapiPluginProcess(
|
| int render_process_id,
|
| const base::FilePath& plugin_path) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| if (filter_ && !filter_->CanLoadPlugin(render_process_id, plugin_path))
|
| return NULL;
|
| @@ -318,7 +318,7 @@ PpapiPluginProcessHost* PluginServiceImpl::FindOrStartPpapiPluginProcess(
|
| int render_process_id,
|
| const base::FilePath& plugin_path,
|
| const base::FilePath& profile_data_directory) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| if (filter_ && !filter_->CanLoadPlugin(render_process_id, plugin_path)) {
|
| VLOG(1) << "Unable to load ppapi plugin: " << plugin_path.MaybeAsASCII();
|
| @@ -361,7 +361,7 @@ PpapiPluginProcessHost* PluginServiceImpl::FindOrStartPpapiPluginProcess(
|
| PpapiPluginProcessHost* PluginServiceImpl::FindOrStartPpapiBrokerProcess(
|
| int render_process_id,
|
| const base::FilePath& plugin_path) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| if (filter_ && !filter_->CanLoadPlugin(render_process_id, plugin_path))
|
| return NULL;
|
| @@ -389,7 +389,7 @@ void PluginServiceImpl::OpenChannelToNpapiPlugin(
|
| const GURL& page_url,
|
| const std::string& mime_type,
|
| PluginProcessHost::Client* client) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| DCHECK(!ContainsKey(pending_plugin_clients_, client));
|
| pending_plugin_clients_.insert(client);
|
|
|
| @@ -436,7 +436,7 @@ void PluginServiceImpl::OpenChannelToPpapiBroker(
|
|
|
| void PluginServiceImpl::CancelOpenChannelToNpapiPlugin(
|
| PluginProcessHost::Client* client) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| DCHECK(ContainsKey(pending_plugin_clients_, client));
|
| pending_plugin_clients_.erase(client);
|
| }
|
| @@ -484,7 +484,7 @@ void PluginServiceImpl::FinishOpenChannelToPlugin(
|
| int render_process_id,
|
| const base::FilePath& plugin_path,
|
| PluginProcessHost::Client* client) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| // Make sure it hasn't been canceled yet.
|
| if (!ContainsKey(pending_plugin_clients_, client))
|
| @@ -623,7 +623,7 @@ void PluginServiceImpl::GetPluginsInternal(
|
| void PluginServiceImpl::GetPluginsOnIOThread(
|
| base::MessageLoopProxy* target_loop,
|
| const GetPluginsCallback& callback) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| // If we switch back to loading plugins in process, then we need to make
|
| // sure g_thread_init() gets called since plugins may call glib at load.
|
| @@ -717,7 +717,7 @@ static const unsigned int kMaxCrashesPerInterval = 3;
|
| static const unsigned int kCrashesInterval = 120;
|
|
|
| void PluginServiceImpl::RegisterPluginCrash(const base::FilePath& path) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| std::map<base::FilePath, std::vector<base::Time> >::iterator i =
|
| crash_times_.find(path);
|
| if (i == crash_times_.end()) {
|
| @@ -732,7 +732,7 @@ void PluginServiceImpl::RegisterPluginCrash(const base::FilePath& path) {
|
| }
|
|
|
| bool PluginServiceImpl::IsPluginUnstable(const base::FilePath& path) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| std::map<base::FilePath, std::vector<base::Time> >::const_iterator i =
|
| crash_times_.find(path);
|
| if (i == crash_times_.end()) {
|
|
|