OLD | NEW |
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/services/gcm/push_messaging_infobar_delegate.h" | 5 #include "chrome/browser/services/gcm/push_messaging_infobar_delegate.h" |
6 | 6 |
| 7 #include "chrome/grit/generated_resources.h" |
7 #include "components/infobars/core/infobar.h" | 8 #include "components/infobars/core/infobar.h" |
8 #include "grit/generated_resources.h" | |
9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
10 #include "net/base/net_util.h" | 10 #include "net/base/net_util.h" |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 | 12 |
13 namespace gcm { | 13 namespace gcm { |
14 | 14 |
15 // static | 15 // static |
16 infobars::InfoBar* PushMessagingInfoBarDelegate::Create( | 16 infobars::InfoBar* PushMessagingInfoBarDelegate::Create( |
17 InfoBarService* infobar_service, | 17 InfoBarService* infobar_service, |
18 PermissionQueueController* controller, | 18 PermissionQueueController* controller, |
(...skipping 30 matching lines...) Expand all Loading... |
49 net::kFormatUrlOmitTrailingSlashOnBareHostname, | 49 net::kFormatUrlOmitTrailingSlashOnBareHostname, |
50 net::UnescapeRule::SPACES, NULL, NULL, NULL)); | 50 net::UnescapeRule::SPACES, NULL, NULL, NULL)); |
51 } | 51 } |
52 | 52 |
53 int PushMessagingInfoBarDelegate::GetIconID() const { | 53 int PushMessagingInfoBarDelegate::GetIconID() const { |
54 // TODO(miguelg): change once we have an icon | 54 // TODO(miguelg): change once we have an icon |
55 return IDR_INFOBAR_WARNING; | 55 return IDR_INFOBAR_WARNING; |
56 } | 56 } |
57 | 57 |
58 } // namespace gcm | 58 } // namespace gcm |
OLD | NEW |