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

Side by Side Diff: components/infobars/core/infobar_delegate.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix components/OWNERS Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/infobars/infobar_delegate.h" 5 #include "components/infobars/core/infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/infobars/infobar.h" 9 #include "components/infobars/core/infobar.h"
10 #include "chrome/browser/infobars/infobar_manager.h" 10 #include "components/infobars/core/infobar_manager.h"
11 #include "ui/base/resource/resource_bundle.h" 11 #include "ui/base/resource/resource_bundle.h"
12 12
13 const int InfoBarDelegate::kNoIconID = 0; 13 const int InfoBarDelegate::kNoIconID = 0;
14 14
15 InfoBarDelegate::~InfoBarDelegate() { 15 InfoBarDelegate::~InfoBarDelegate() {
16 } 16 }
17 17
18 InfoBarDelegate::InfoBarAutomationType 18 InfoBarDelegate::InfoBarAutomationType
19 InfoBarDelegate::GetInfoBarAutomationType() const { 19 InfoBarDelegate::GetInfoBarAutomationType() const {
20 return UNKNOWN_INFOBAR; 20 return UNKNOWN_INFOBAR;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) { 99 InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) {
100 } 100 }
101 101
102 bool InfoBarDelegate::ShouldExpireInternal( 102 bool InfoBarDelegate::ShouldExpireInternal(
103 const NavigationDetails& details) const { 103 const NavigationDetails& details) const {
104 // NOTE: If you change this, be sure to check and adjust the behavior of 104 // NOTE: If you change this, be sure to check and adjust the behavior of
105 // anyone who overrides this as necessary! 105 // anyone who overrides this as necessary!
106 return (contents_unique_id_ != details.entry_id) || details.is_reload; 106 return (contents_unique_id_ != details.entry_id) || details.is_reload;
107 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698