OLD | NEW |
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/ui/cocoa/keystone_infobar_delegate.h" | 5 #include "chrome/browser/ui/cocoa/keystone_infobar_delegate.h" |
6 | 6 |
7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
16 #include "chrome/browser/first_run/first_run.h" | 16 #include "chrome/browser/first_run/first_run.h" |
17 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | |
18 #include "chrome/browser/infobars/infobar_service.h" | 17 #include "chrome/browser/infobars/infobar_service.h" |
19 #import "chrome/browser/mac/keystone_glue.h" | 18 #import "chrome/browser/mac/keystone_glue.h" |
20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/browser/ui/cocoa/last_active_browser_cocoa.h" | 21 #include "chrome/browser/ui/cocoa/last_active_browser_cocoa.h" |
23 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 22 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
24 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
| 25 #include "components/infobars/core/confirm_infobar_delegate.h" |
26 #include "components/infobars/core/infobar.h" | 26 #include "components/infobars/core/infobar.h" |
27 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
28 #include "grit/chromium_strings.h" | 28 #include "grit/chromium_strings.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 #include "grit/theme_resources.h" | 30 #include "grit/theme_resources.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 | 32 |
33 class SkBitmap; | 33 class SkBitmap; |
34 | 34 |
35 namespace { | 35 namespace { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 @end // @implementation KeystonePromotionInfoBar | 219 @end // @implementation KeystonePromotionInfoBar |
220 | 220 |
221 // static | 221 // static |
222 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { | 222 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { |
223 KeystonePromotionInfoBar* promotionInfoBar = | 223 KeystonePromotionInfoBar* promotionInfoBar = |
224 [[[KeystonePromotionInfoBar alloc] init] autorelease]; | 224 [[[KeystonePromotionInfoBar alloc] init] autorelease]; |
225 | 225 |
226 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; | 226 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; |
227 } | 227 } |
OLD | NEW |