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 #include "chrome/browser/extensions/api/automation_internal/automation_internal_
api.h" | 5 #include "chrome/browser/extensions/api/automation_internal/automation_internal_
api.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 } | 505 } |
506 | 506 |
507 void AutomationInternalQuerySelectorFunction::OnResponse( | 507 void AutomationInternalQuerySelectorFunction::OnResponse( |
508 const std::string& error, | 508 const std::string& error, |
509 int result_acc_obj_id) { | 509 int result_acc_obj_id) { |
510 if (!error.empty()) { | 510 if (!error.empty()) { |
511 Respond(Error(error)); | 511 Respond(Error(error)); |
512 return; | 512 return; |
513 } | 513 } |
514 | 514 |
515 Respond( | 515 Respond(OneArgument(base::MakeUnique<base::Value>(result_acc_obj_id))); |
516 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); | |
517 } | 516 } |
518 | 517 |
519 } // namespace extensions | 518 } // namespace extensions |
OLD | NEW |