OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/extensions/extension_constants.h" | 5 #include "chrome/common/extensions/extension_constants.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 454 |
455 GURL GetWebstoreUpdateUrl(bool secure) { | 455 GURL GetWebstoreUpdateUrl(bool secure) { |
456 CommandLine* cmdline = CommandLine::ForCurrentProcess(); | 456 CommandLine* cmdline = CommandLine::ForCurrentProcess(); |
457 if (cmdline->HasSwitch(switches::kAppsGalleryUpdateURL)) | 457 if (cmdline->HasSwitch(switches::kAppsGalleryUpdateURL)) |
458 return GURL(cmdline->GetSwitchValueASCII(switches::kAppsGalleryUpdateURL)); | 458 return GURL(cmdline->GetSwitchValueASCII(switches::kAppsGalleryUpdateURL)); |
459 else | 459 else |
460 return GURL(secure ? kGalleryUpdateHttpsUrl : kGalleryUpdateHttpUrl); | 460 return GURL(secure ? kGalleryUpdateHttpsUrl : kGalleryUpdateHttpUrl); |
461 } | 461 } |
462 | 462 |
463 const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore"; | 463 const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore"; |
464 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; | |
465 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; | |
466 } | 464 } |
467 | 465 |
468 namespace extension_filenames { | 466 namespace extension_filenames { |
469 const char* kTempExtensionName = "CRX_INSTALL"; | 467 const char* kTempExtensionName = "CRX_INSTALL"; |
470 | 468 |
471 // The file to write our decoded images to, relative to the extension_path. | 469 // The file to write our decoded images to, relative to the extension_path. |
472 const char* kDecodedImagesFilename = "DECODED_IMAGES"; | 470 const char* kDecodedImagesFilename = "DECODED_IMAGES"; |
473 | 471 |
474 // The file to write our decoded message catalogs to, relative to the | 472 // The file to write our decoded message catalogs to, relative to the |
475 // extension_path. | 473 // extension_path. |
476 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; | 474 const char* kDecodedMessageCatalogsFilename = "DECODED_MESSAGE_CATALOGS"; |
477 } | 475 } |
478 | 476 |
479 namespace extension_misc { | 477 namespace extension_misc { |
480 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; | 478 const char* kBookmarkManagerId = "eemcgdkfndhakfknompkggombfjjjeno"; |
481 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; | 479 const char* kWebStoreAppId = "ahfgeienlihckogmohjhadlkjgocpleb"; |
482 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng"; | 480 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng"; |
483 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; | 481 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; |
484 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; | 482 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; |
485 #if defined(OS_CHROMEOS) | 483 #if defined(OS_CHROMEOS) |
486 const char* kAccessExtensionPath = | 484 const char* kAccessExtensionPath = |
487 "/usr/share/chromeos-assets/accessibility/extensions"; | 485 "/usr/share/chromeos-assets/accessibility/extensions"; |
488 const char* kChromeVoxDirectoryName = "access_chromevox"; | 486 const char* kChromeVoxDirectoryName = "access_chromevox"; |
489 #endif | 487 #endif |
490 | 488 |
491 } | 489 } |
OLD | NEW |