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

Side by Side Diff: chrome/browser/tab_contents/infobar_delegate.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/tab_contents/infobar_delegate.h" 5 #include "chrome/browser/tab_contents/infobar_delegate.h"
6 6
7 #include "app/l10n_util.h"
7 #include "base/logging.h" 8 #include "base/logging.h"
8 #include "build/build_config.h" 9 #include "build/build_config.h"
9 #include "chrome/browser/tab_contents/navigation_entry.h" 10 #include "chrome/browser/tab_contents/navigation_entry.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h" 11 #include "chrome/browser/tab_contents/navigation_controller.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/common/l10n_util.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 14
15 // InfoBarDelegate: ------------------------------------------------------------ 15 // InfoBarDelegate: ------------------------------------------------------------
16 16
17 bool InfoBarDelegate::ShouldExpire( 17 bool InfoBarDelegate::ShouldExpire(
18 const NavigationController::LoadCommittedDetails& details) const { 18 const NavigationController::LoadCommittedDetails& details) const {
19 bool is_reload = 19 bool is_reload =
20 PageTransition::StripQualifier(details.entry->transition_type()) == 20 PageTransition::StripQualifier(details.entry->transition_type()) ==
21 PageTransition::RELOAD; 21 PageTransition::RELOAD;
22 return is_reload || (contents_unique_id_ != details.entry->unique_id()); 22 return is_reload || (contents_unique_id_ != details.entry->unique_id());
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return message_; 84 return message_;
85 } 85 }
86 86
87 SkBitmap* SimpleAlertInfoBarDelegate::GetIcon() const { 87 SkBitmap* SimpleAlertInfoBarDelegate::GetIcon() const {
88 return icon_; 88 return icon_;
89 } 89 }
90 90
91 void SimpleAlertInfoBarDelegate::InfoBarClosed() { 91 void SimpleAlertInfoBarDelegate::InfoBarClosed() {
92 delete this; 92 delete this;
93 } 93 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698