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

Side by Side Diff: chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on Android Created 6 years 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/ui/android/infobars/data_reduction_proxy_infobar.h" 5 #include "chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/android/resource_mapper.h" 10 #include "chrome/browser/android/resource_mapper.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 DataReductionProxyInfoBarDelegate* DataReductionProxyInfoBar::GetDelegate() { 52 DataReductionProxyInfoBarDelegate* DataReductionProxyInfoBar::GetDelegate() {
53 return static_cast<DataReductionProxyInfoBarDelegate*>(delegate()); 53 return static_cast<DataReductionProxyInfoBarDelegate*>(delegate());
54 } 54 }
55 55
56 56
57 // DataReductionProxyInfoBarDelegate: 57 // DataReductionProxyInfoBarDelegate:
58 58
59 // static 59 // static
60 scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar( 60 scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar(
61 infobars::InfoBarManager* infobar_manager,
61 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate) { 62 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate) {
62 return scoped_ptr<infobars::InfoBar>( 63 return scoped_ptr<infobars::InfoBar>(
63 new DataReductionProxyInfoBar(delegate.Pass())); 64 new DataReductionProxyInfoBar(delegate.Pass()));
64 } 65 }
65 66
66 67
67 // JNI for DataReductionProxyInfoBarDelegate. 68 // JNI for DataReductionProxyInfoBarDelegate.
68 void 69 void
69 Launch(JNIEnv* env, jclass clazz, jobject jweb_contents, jstring jlink_url) { 70 Launch(JNIEnv* env, jclass clazz, jobject jweb_contents, jstring jlink_url) {
70 DataReductionProxyInfoBar::Launch(env, clazz, jweb_contents, jlink_url); 71 DataReductionProxyInfoBar::Launch(env, clazz, jweb_contents, jlink_url);
71 } 72 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/infobars/confirm_infobar.cc ('k') | chrome/browser/ui/auto_login_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698