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

Side by Side Diff: chrome/browser/android/blimp/chrome_blimp_client_context_delegate.cc

Issue 2132163002: Add BlimpClientContext and factory with real and dummy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-blimp-client-core-public-to-blimp-client
Patch Set: git merge origin/master before CQ for good measure Created 4 years, 5 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h"
6
7 #include "blimp/client/public/blimp_client_context.h"
8 #include "blimp/client/public/blimp_client_context_delegate.h"
9 #include "blimp/client/public/blimp_contents.h"
10 #include "chrome/browser/android/blimp/blimp_client_context_factory.h"
11 #include "chrome/browser/android/blimp/blimp_contents_profile_attachment.h"
12 #include "chrome/browser/profiles/profile.h"
13
14 ChromeBlimpClientContextDelegate::ChromeBlimpClientContextDelegate(
15 Profile* profile)
16 : profile_(profile),
17 blimp_client_context_(
18 BlimpClientContextFactory::GetForBrowserContext(profile)) {
19 blimp_client_context_->SetDelegate(this);
20 }
21
22 ChromeBlimpClientContextDelegate::~ChromeBlimpClientContextDelegate() {
23 blimp_client_context_->SetDelegate(nullptr);
24 }
25
26 void ChromeBlimpClientContextDelegate::AttachBlimpContentsHelpers(
27 blimp::client::BlimpContents* blimp_contents) {
28 AttachProfileToBlimpContents(blimp_contents, profile_);
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698