Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Unified Diff: chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
diff --git a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
index 1652078fd58b5af8dadc28add9d457577a9cd47b..8a61cde885300684f9cbe29f7a610e77116d01ca 100644
--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
@@ -37,7 +37,7 @@ using extensions::Extension;
using extensions::ExtensionSystem;
using extensions::ExtensionUpdater;
-using extensions::core_api::runtime::PlatformInfo;
+using extensions::api::runtime::PlatformInfo;
namespace {
@@ -183,15 +183,15 @@ void ChromeRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) {
bool ChromeRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) {
const char* os = update_client::UpdateQueryParams::GetOS();
if (strcmp(os, "mac") == 0) {
- info->os = extensions::core_api::runtime::PLATFORM_OS_MAC;
+ info->os = extensions::api::runtime::PLATFORM_OS_MAC;
} else if (strcmp(os, "win") == 0) {
- info->os = extensions::core_api::runtime::PLATFORM_OS_WIN;
+ info->os = extensions::api::runtime::PLATFORM_OS_WIN;
} else if (strcmp(os, "cros") == 0) {
- info->os = extensions::core_api::runtime::PLATFORM_OS_CROS;
+ info->os = extensions::api::runtime::PLATFORM_OS_CROS;
} else if (strcmp(os, "linux") == 0) {
- info->os = extensions::core_api::runtime::PLATFORM_OS_LINUX;
+ info->os = extensions::api::runtime::PLATFORM_OS_LINUX;
} else if (strcmp(os, "openbsd") == 0) {
- info->os = extensions::core_api::runtime::PLATFORM_OS_OPENBSD;
+ info->os = extensions::api::runtime::PLATFORM_OS_OPENBSD;
} else {
NOTREACHED();
return false;
@@ -199,11 +199,11 @@ bool ChromeRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) {
const char* arch = update_client::UpdateQueryParams::GetArch();
if (strcmp(arch, "arm") == 0) {
- info->arch = extensions::core_api::runtime::PLATFORM_ARCH_ARM;
+ info->arch = extensions::api::runtime::PLATFORM_ARCH_ARM;
} else if (strcmp(arch, "x86") == 0) {
- info->arch = extensions::core_api::runtime::PLATFORM_ARCH_X86_32;
+ info->arch = extensions::api::runtime::PLATFORM_ARCH_X86_32;
} else if (strcmp(arch, "x64") == 0) {
- info->arch = extensions::core_api::runtime::PLATFORM_ARCH_X86_64;
+ info->arch = extensions::api::runtime::PLATFORM_ARCH_X86_64;
} else {
NOTREACHED();
return false;
@@ -211,14 +211,11 @@ bool ChromeRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) {
const char* nacl_arch = update_client::UpdateQueryParams::GetNaclArch();
if (strcmp(nacl_arch, "arm") == 0) {
- info->nacl_arch =
- extensions::core_api::runtime::PLATFORM_NACL_ARCH_ARM;
+ info->nacl_arch = extensions::api::runtime::PLATFORM_NACL_ARCH_ARM;
} else if (strcmp(nacl_arch, "x86-32") == 0) {
- info->nacl_arch =
- extensions::core_api::runtime::PLATFORM_NACL_ARCH_X86_32;
+ info->nacl_arch = extensions::api::runtime::PLATFORM_NACL_ARCH_X86_32;
} else if (strcmp(nacl_arch, "x86-64") == 0) {
- info->nacl_arch =
- extensions::core_api::runtime::PLATFORM_NACL_ARCH_X86_64;
+ info->nacl_arch = extensions::api::runtime::PLATFORM_NACL_ARCH_X86_64;
} else {
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698