OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/omnibox/alternate_nav_infobar_delegate.h" | 5 #include "chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/autocomplete/shortcuts_backend.h" | |
9 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
10 #include "chrome/browser/history/history_service_factory.h" | 9 #include "chrome/browser/history/history_service_factory.h" |
11 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
14 #include "components/history/core/browser/history_service.h" | 13 #include "components/history/core/browser/history_service.h" |
15 #include "components/infobars/core/infobar.h" | 14 #include "components/infobars/core/infobar.h" |
| 15 #include "components/omnibox/shortcuts_backend.h" |
16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 | 19 |
20 | 20 |
21 AlternateNavInfoBarDelegate::~AlternateNavInfoBarDelegate() { | 21 AlternateNavInfoBarDelegate::~AlternateNavInfoBarDelegate() { |
22 } | 22 } |
23 | 23 |
24 // static | 24 // static |
25 void AlternateNavInfoBarDelegate::Create( | 25 void AlternateNavInfoBarDelegate::Create( |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 infobars::InfoBarDelegate::Type | 96 infobars::InfoBarDelegate::Type |
97 AlternateNavInfoBarDelegate::GetInfoBarType() const { | 97 AlternateNavInfoBarDelegate::GetInfoBarType() const { |
98 return PAGE_ACTION_TYPE; | 98 return PAGE_ACTION_TYPE; |
99 } | 99 } |
100 | 100 |
101 int AlternateNavInfoBarDelegate::GetIconID() const { | 101 int AlternateNavInfoBarDelegate::GetIconID() const { |
102 return IDR_INFOBAR_ALT_NAV_URL; | 102 return IDR_INFOBAR_ALT_NAV_URL; |
103 } | 103 } |
OLD | NEW |