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

Unified Diff: chrome/browser/extensions/extension_infobar_delegate.cc

Issue 765643003: Remove dependency from infobars component to the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/infobars/chrome_infobar_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_infobar_delegate.cc
diff --git a/chrome/browser/extensions/extension_infobar_delegate.cc b/chrome/browser/extensions/extension_infobar_delegate.cc
index ba169600b5184f53265edb06f9aec89053285566..fad480cfdce64b9783c5be0ff6171256575daf14 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.cc
+++ b/chrome/browser/extensions/extension_infobar_delegate.cc
@@ -55,9 +55,10 @@ ExtensionInfoBarDelegate::ExtensionInfoBarDelegate(
content::Source<Profile>(browser->profile()));
height_ = std::max(0, height);
- height_ = std::min(2 * infobars::InfoBar::kDefaultBarTargetHeight, height_);
+ height_ =
+ std::min(2 * kChromeInfoBarConstants.default_bar_target_height, height_);
if (height_ == 0)
- height_ = infobars::InfoBar::kDefaultBarTargetHeight;
+ height_ = kChromeInfoBarConstants.default_bar_target_height;
}
content::WebContents* ExtensionInfoBarDelegate::GetWebContents() {
« no previous file with comments | « no previous file | chrome/browser/infobars/chrome_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698