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

Unified Diff: content/browser/mojo/mojo_app_connection_impl.cc

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. (Mostly removing BrowserContext knowlege.) Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/mojo/mojo_app_connection_impl.cc
diff --git a/content/browser/mojo/mojo_app_connection_impl.cc b/content/browser/mojo/mojo_app_connection_impl.cc
index 1cf214836f81b9279303cc382f7a62b71a42f22c..24434c64806fb09a7c4805039970a4594e98fdee 100644
--- a/content/browser/mojo/mojo_app_connection_impl.cc
+++ b/content/browser/mojo/mojo_app_connection_impl.cc
@@ -20,17 +20,19 @@ void OnGotInstanceID(uint32_t remote_id, uint32_t user_id) {}
// static
scoped_ptr<MojoAppConnection> MojoAppConnection::Create(
+ uint32_t user_id,
const std::string& name,
const std::string& requestor_name) {
return scoped_ptr<MojoAppConnection>(
- new MojoAppConnectionImpl(name, requestor_name));
+ new MojoAppConnectionImpl(user_id, name, requestor_name));
}
MojoAppConnectionImpl::MojoAppConnectionImpl(
+ uint32_t user_id,
const std::string& name,
const std::string& requestor_name) {
- MojoShellContext::ConnectToApplication(
- name, requestor_name, mojo::GetProxy(&interfaces_),
+ MojoShellContext::ConnectToApplicationWithUserId(
+ user_id, name, requestor_name, mojo::GetProxy(&interfaces_),
mojo::shell::mojom::InterfaceProviderPtr(),
base::Bind(&OnGotInstanceID));
}

Powered by Google App Engine
This is Rietveld 408576698