| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/extensions/extension_action_platform_delegate_c
ocoa.h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_action_platform_delegate_c
ocoa.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 gfx::NativeWindow window = payload->second; | 144 gfx::NativeWindow window = payload->second; |
| 145 if (window == controller_->browser()->window()->GetNativeWindow() && | 145 if (window == controller_->browser()->window()->GetNativeWindow() && |
| 146 extension_id == controller_->extension()->id() && | 146 extension_id == controller_->extension()->id() && |
| 147 controller_->IsEnabled( | 147 controller_->IsEnabled( |
| 148 controller_->view_delegate()->GetCurrentWebContents())) { | 148 controller_->view_delegate()->GetCurrentWebContents())) { |
| 149 controller_->ExecuteAction(true); | 149 controller_->ExecuteAction(true); |
| 150 } | 150 } |
| 151 break; | 151 break; |
| 152 } | 152 } |
| 153 default: | 153 default: |
| 154 NOTREACHED() << L"Unexpected notification"; | 154 NOTREACHED() << "Unexpected notification"; |
| 155 } | 155 } |
| 156 } | 156 } |
| OLD | NEW |