| 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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 4453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4464 it != all.end(); ++it) { | 4464 it != all.end(); ++it) { |
| 4465 const Extension* extension = *it; | 4465 const Extension* extension = *it; |
| 4466 std::string id = extension->id(); | 4466 std::string id = extension->id(); |
| 4467 DictionaryValue* extension_value = new DictionaryValue; | 4467 DictionaryValue* extension_value = new DictionaryValue; |
| 4468 extension_value->SetString("id", id); | 4468 extension_value->SetString("id", id); |
| 4469 extension_value->SetString("version", extension->VersionString()); | 4469 extension_value->SetString("version", extension->VersionString()); |
| 4470 extension_value->SetString("name", extension->name()); | 4470 extension_value->SetString("name", extension->name()); |
| 4471 extension_value->SetString("public_key", extension->public_key()); | 4471 extension_value->SetString("public_key", extension->public_key()); |
| 4472 extension_value->SetString("description", extension->description()); | 4472 extension_value->SetString("description", extension->description()); |
| 4473 extension_value->SetString("background_url", | 4473 extension_value->SetString("background_url", |
| 4474 extension->background_url().spec()); | 4474 extension->GetBackgroundURL().spec()); |
| 4475 extension_value->SetString("options_url", | 4475 extension_value->SetString("options_url", |
| 4476 extension->options_url().spec()); | 4476 extension->options_url().spec()); |
| 4477 extension_value->Set("host_permissions", | 4477 extension_value->Set("host_permissions", |
| 4478 GetHostPermissions(extension, false)); | 4478 GetHostPermissions(extension, false)); |
| 4479 extension_value->Set("effective_host_permissions", | 4479 extension_value->Set("effective_host_permissions", |
| 4480 GetHostPermissions(extension, true)); | 4480 GetHostPermissions(extension, true)); |
| 4481 extension_value->Set("api_permissions", GetAPIPermissions(extension)); | 4481 extension_value->Set("api_permissions", GetAPIPermissions(extension)); |
| 4482 Extension::Location location = extension->location(); | 4482 Extension::Location location = extension->location(); |
| 4483 extension_value->SetBoolean("is_component", | 4483 extension_value->SetBoolean("is_component", |
| 4484 location == Extension::COMPONENT); | 4484 location == Extension::COMPONENT); |
| (...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6722 | 6722 |
| 6723 Send(reply_message_); | 6723 Send(reply_message_); |
| 6724 redirect_query_ = 0; | 6724 redirect_query_ = 0; |
| 6725 reply_message_ = NULL; | 6725 reply_message_ = NULL; |
| 6726 } | 6726 } |
| 6727 | 6727 |
| 6728 void TestingAutomationProvider::OnRemoveProvider() { | 6728 void TestingAutomationProvider::OnRemoveProvider() { |
| 6729 if (g_browser_process) | 6729 if (g_browser_process) |
| 6730 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6730 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6731 } | 6731 } |
| OLD | NEW |