| 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/views/ash/balloon_collection_impl_ash.h" | 5 #include "chrome/browser/ui/views/ash/balloon_collection_impl_ash.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/system/status_area_widget.h" | 8 #include "ash/system/status_area_widget.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/notifications/balloon.h" | 10 #include "chrome/browser/notifications/balloon.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 Balloon* balloon) { | 129 Balloon* balloon) { |
| 130 if (!balloon) | 130 if (!balloon) |
| 131 return NULL; | 131 return NULL; |
| 132 ExtensionService* extension_service = | 132 ExtensionService* extension_service = |
| 133 balloon->profile()->GetExtensionService(); | 133 balloon->profile()->GetExtensionService(); |
| 134 const GURL& origin = balloon->notification().origin_url(); | 134 const GURL& origin = balloon->notification().origin_url(); |
| 135 return extension_service->extensions()->GetExtensionOrAppByURL( | 135 return extension_service->extensions()->GetExtensionOrAppByURL( |
| 136 ExtensionURLInfo(origin)); | 136 ExtensionURLInfo(origin)); |
| 137 } | 137 } |
| 138 | 138 |
| 139 #if defined(OS_CHROMEOS) |
| 139 // static | 140 // static |
| 140 BalloonCollection* BalloonCollection::Create() { | 141 BalloonCollection* BalloonCollection::Create() { |
| 141 return new BalloonCollectionImplAsh(); | 142 return new BalloonCollectionImplAsh(); |
| 142 } | 143 } |
| 144 #endif |
| OLD | NEW |