| 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.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/prefs/pref_service.h" |
| 15 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" | 16 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
| 16 #include "chrome/browser/api/infobars/infobar_service.h" | 17 #include "chrome/browser/api/infobars/infobar_service.h" |
| 17 #include "chrome/browser/first_run/first_run.h" | 18 #include "chrome/browser/first_run/first_run.h" |
| 18 #import "chrome/browser/mac/keystone_glue.h" | 19 #import "chrome/browser/mac/keystone_glue.h" |
| 19 #include "chrome/browser/prefs/pref_service.h" | |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/browser/ui/cocoa/last_active_browser_cocoa.h" | 22 #include "chrome/browser/ui/cocoa/last_active_browser_cocoa.h" |
| 23 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 23 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 26 #include "content/public/browser/navigation_details.h" | 26 #include "content/public/browser/navigation_details.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" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 @end // @implementation KeystonePromotionInfoBar | 225 @end // @implementation KeystonePromotionInfoBar |
| 226 | 226 |
| 227 // static | 227 // static |
| 228 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { | 228 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { |
| 229 KeystonePromotionInfoBar* promotionInfoBar = | 229 KeystonePromotionInfoBar* promotionInfoBar = |
| 230 [[[KeystonePromotionInfoBar alloc] init] autorelease]; | 230 [[[KeystonePromotionInfoBar alloc] init] autorelease]; |
| 231 | 231 |
| 232 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; | 232 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; |
| 233 } | 233 } |
| OLD | NEW |