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

Unified Diff: chrome/browser/nacl_host/nacl_host_message_filter.cc

Issue 17826006: Remove dependency of NaClHostMessageFilter code on Profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/nacl_host/nacl_host_message_filter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/nacl_host_message_filter.cc
diff --git a/chrome/browser/nacl_host/nacl_host_message_filter.cc b/chrome/browser/nacl_host/nacl_host_message_filter.cc
index 20ad21f843954ac4e4dedb32d3cce20ad0d2bc79..2b54ab59f6017362e3868d57c5a7ee8eea18b1b1 100644
--- a/chrome/browser/nacl_host/nacl_host_message_filter.cc
+++ b/chrome/browser/nacl_host/nacl_host_message_filter.cc
@@ -13,7 +13,6 @@
#include "chrome/browser/nacl_host/nacl_file_host.h"
#include "chrome/browser/nacl_host/nacl_infobar.h"
#include "chrome/browser/nacl_host/nacl_process_host.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/nacl_host_messages.h"
#include "googleurl/src/gurl.h"
@@ -22,14 +21,15 @@
NaClHostMessageFilter::NaClHostMessageFilter(
int render_process_id,
- Profile* profile,
+ bool is_off_the_record,
+ const base::FilePath& profile_directory,
+ ExtensionInfoMap* extension_info_map,
net::URLRequestContextGetter* request_context)
: render_process_id_(render_process_id),
- profile_(profile),
- off_the_record_(profile_->IsOffTheRecord()),
+ off_the_record_(is_off_the_record),
+ profile_directory_(profile_directory),
request_context_(request_context),
- extension_info_map_(
- extensions::ExtensionSystem::Get(profile)->info_map()),
+ extension_info_map_(extension_info_map),
weak_ptr_factory_(this) {
}
@@ -72,7 +72,7 @@ void NaClHostMessageFilter::OnLaunchNaCl(
launch_params.enable_dyncode_syscalls,
launch_params.enable_exception_handling,
off_the_record_,
- profile_->GetPath());
+ profile_directory_);
host->Launch(this, reply_msg, extension_info_map_);
}
« no previous file with comments | « chrome/browser/nacl_host/nacl_host_message_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698