| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cocoa/keystone_infobar.h" | 5 #include "chrome/browser/cocoa/keystone_infobar.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 "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 12 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/task.h" | 15 #include "base/task.h" |
| 16 #import "chrome/browser/cocoa/keystone_glue.h" | 16 #import "chrome/browser/cocoa/keystone_glue.h" |
| 17 #include "chrome/browser/browser.h" | 17 #include "chrome/browser/browser.h" |
| 18 #include "chrome/browser/browser_list.h" | 18 #include "chrome/browser/browser_list.h" |
| 19 #include "chrome/browser/first_run/first_run.h" | 19 #include "chrome/browser/first_run/first_run.h" |
| 20 #include "chrome/browser/pref_service.h" | 20 #include "chrome/browser/prefs/pref_service.h" |
| 21 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profile.h" |
| 22 #include "chrome/browser/tab_contents/infobar_delegate.h" | 22 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 23 #include "chrome/browser/tab_contents/navigation_controller.h" | 23 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 24 #include "chrome/browser/tab_contents/tab_contents.h" | 24 #include "chrome/browser/tab_contents/tab_contents.h" |
| 25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 #include "grit/chromium_strings.h" | 27 #include "grit/chromium_strings.h" |
| 28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 29 #include "grit/theme_resources.h" | 29 #include "grit/theme_resources.h" |
| 30 | 30 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 @end // @implementation KeystonePromotionInfoBar | 204 @end // @implementation KeystonePromotionInfoBar |
| 205 | 205 |
| 206 // static | 206 // static |
| 207 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { | 207 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { |
| 208 KeystonePromotionInfoBar* promotionInfoBar = | 208 KeystonePromotionInfoBar* promotionInfoBar = |
| 209 [[[KeystonePromotionInfoBar alloc] init] autorelease]; | 209 [[[KeystonePromotionInfoBar alloc] init] autorelease]; |
| 210 | 210 |
| 211 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; | 211 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; |
| 212 } | 212 } |
| OLD | NEW |