| 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/intents/register_intent_handler_infobar_delegate.h" | 5 #include "chrome/browser/intents/register_intent_handler_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/api/infobars/infobar_tab_helper.h" |
| 11 #include "chrome/browser/favicon/favicon_service.h" | 12 #include "chrome/browser/favicon/favicon_service.h" |
| 12 #include "chrome/browser/infobars/infobar_tab_helper.h" | |
| 13 #include "chrome/browser/intents/web_intents_registry.h" | 13 #include "chrome/browser/intents/web_intents_registry.h" |
| 14 #include "chrome/browser/intents/web_intents_registry_factory.h" | 14 #include "chrome/browser/intents/web_intents_registry_factory.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 | 18 |
| 19 RegisterIntentHandlerInfoBarDelegate::RegisterIntentHandlerInfoBarDelegate( | 19 RegisterIntentHandlerInfoBarDelegate::RegisterIntentHandlerInfoBarDelegate( |
| 20 InfoBarTabHelper* infobar_helper, | 20 InfoBarTabHelper* infobar_helper, |
| 21 WebIntentsRegistry* registry, | 21 WebIntentsRegistry* registry, |
| 22 const webkit_glue::WebIntentServiceData& service, | 22 const webkit_glue::WebIntentServiceData& service, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 DCHECK(infobar_helper); | 101 DCHECK(infobar_helper); |
| 102 DCHECK(registry); | 102 DCHECK(registry); |
| 103 registry->IntentServiceExists(service, | 103 registry->IntentServiceExists(service, |
| 104 base::Bind(&CheckProvider, | 104 base::Bind(&CheckProvider, |
| 105 base::Unretained(infobar_helper), | 105 base::Unretained(infobar_helper), |
| 106 registry, | 106 registry, |
| 107 service, | 107 service, |
| 108 favicon_service, | 108 favicon_service, |
| 109 origin_url)); | 109 origin_url)); |
| 110 } | 110 } |
| OLD | NEW |