| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test/automation/extension_proxy.h" | 5 #include "chrome/test/automation/extension_proxy.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 #include "chrome/common/automation_messages.h" | 8 #include "chrome/test/automation/automation_messages.h" |
| 9 #include "chrome/test/automation/automation_proxy.h" | 9 #include "chrome/test/automation/automation_proxy.h" |
| 10 #include "chrome/test/automation/browser_proxy.h" | 10 #include "chrome/test/automation/browser_proxy.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 ExtensionProxy::ExtensionProxy(AutomationMessageSender* sender, | 13 ExtensionProxy::ExtensionProxy(AutomationMessageSender* sender, |
| 14 AutomationHandleTracker* tracker, | 14 AutomationHandleTracker* tracker, |
| 15 int handle) | 15 int handle) |
| 16 : AutomationResourceProxy(tracker, sender, handle) { | 16 : AutomationResourceProxy(tracker, sender, handle) { |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 DCHECK(value); | 133 DCHECK(value); |
| 134 if (!is_valid()) | 134 if (!is_valid()) |
| 135 return false; | 135 return false; |
| 136 | 136 |
| 137 bool success = false; | 137 bool success = false; |
| 138 if (!sender_->Send(new AutomationMsg_GetExtensionProperty(0, handle_, type, | 138 if (!sender_->Send(new AutomationMsg_GetExtensionProperty(0, handle_, type, |
| 139 &success, value))) | 139 &success, value))) |
| 140 return false; | 140 return false; |
| 141 return success; | 141 return success; |
| 142 } | 142 } |
| OLD | NEW |