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

Side by Side Diff: chrome/browser/renderer_host/chrome_extension_message_filter.cc

Issue 2694813005: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer_host/chrome_extension_message_filter.h" 5 #include "chrome/browser/renderer_host/chrome_extension_message_filter.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/threading/sequenced_worker_pool.h"
17 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" 18 #include "chrome/browser/extensions/activity_log/activity_action_constants.h"
20 #include "chrome/browser/extensions/activity_log/activity_actions.h" 19 #include "chrome/browser/extensions/activity_log/activity_actions.h"
21 #include "chrome/browser/extensions/activity_log/activity_log.h" 20 #include "chrome/browser/extensions/activity_log/activity_log.h"
22 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat e_api.h" 21 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat e_api.h"
23 #include "chrome/browser/extensions/api/messaging/message_service.h" 22 #include "chrome/browser/extensions/api/messaging/message_service.h"
24 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/profiles/profile_manager.h" 24 #include "chrome/browser/profiles/profile_manager.h"
26 #include "chrome/common/extensions/chrome_extension_messages.h" 25 #include "chrome/common/extensions/chrome_extension_messages.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 bool ChromeExtensionMessageFilter::ShouldLogExtensionAction( 286 bool ChromeExtensionMessageFilter::ShouldLogExtensionAction(
288 const std::string& extension_id) const { 287 const std::string& extension_id) const {
289 // We only send these IPCs if activity logging is enabled, but due to race 288 // We only send these IPCs if activity logging is enabled, but due to race
290 // conditions (e.g. logging gets disabled but the renderer sends the message 289 // conditions (e.g. logging gets disabled but the renderer sends the message
291 // before it gets updated), we still need this check here. 290 // before it gets updated), we still need this check here.
292 DCHECK_CURRENTLY_ON(BrowserThread::UI); 291 DCHECK_CURRENTLY_ON(BrowserThread::UI);
293 return profile_ && 292 return profile_ &&
294 g_browser_process->profile_manager()->IsValidProfile(profile_) && 293 g_browser_process->profile_manager()->IsValidProfile(profile_) &&
295 activity_log_ && activity_log_->ShouldLog(extension_id); 294 activity_log_ && activity_log_->ShouldLog(extension_id);
296 } 295 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698