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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 444 |
445 GURL GetWebstoreInstallUrl(const std::string& extension_id, | 445 GURL GetWebstoreInstallUrl(const std::string& extension_id, |
446 const std::string& locale) { | 446 const std::string& locale) { |
447 std::vector<std::string> params; | 447 std::vector<std::string> params; |
448 params.push_back("id=" + extension_id); | 448 params.push_back("id=" + extension_id); |
449 params.push_back("lang=" + locale); | 449 params.push_back("lang=" + locale); |
450 params.push_back("uc"); | 450 params.push_back("uc"); |
451 std::string url_string = extension_urls::GetWebstoreUpdateUrl(true).spec(); | 451 std::string url_string = extension_urls::GetWebstoreUpdateUrl(true).spec(); |
452 | 452 |
453 GURL url(url_string + "?response=redirect&x=" + | 453 GURL url(url_string + "?response=redirect&x=" + |
454 EscapeQueryParamValue(JoinString(params, '&'), true)); | 454 net::EscapeQueryParamValue(JoinString(params, '&'), true)); |
455 DCHECK(url.is_valid()); | 455 DCHECK(url.is_valid()); |
456 | 456 |
457 return url; | 457 return url; |
458 } | 458 } |
459 | 459 |
460 const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore"; | 460 const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore"; |
461 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; | 461 const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/"; |
462 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; | 462 const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/"; |
463 } | 463 } |
464 | 464 |
(...skipping 14 matching lines...) Expand all Loading... |
479 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng"; | 479 const char* kCloudPrintAppId = "mfehgcgbbipciphmccgaenjidiccnmng"; |
480 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; | 480 const char* kAppsPromoHistogram = "Extensions.AppsPromo"; |
481 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; | 481 const char* kAppLaunchHistogram = "Extensions.AppLaunch"; |
482 #if defined(OS_CHROMEOS) | 482 #if defined(OS_CHROMEOS) |
483 const char* kAccessExtensionPath = | 483 const char* kAccessExtensionPath = |
484 "/usr/share/chromeos-assets/accessibility/extensions"; | 484 "/usr/share/chromeos-assets/accessibility/extensions"; |
485 const char* kChromeVoxDirectoryName = "access_chromevox"; | 485 const char* kChromeVoxDirectoryName = "access_chromevox"; |
486 #endif | 486 #endif |
487 | 487 |
488 } | 488 } |
OLD | NEW |