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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 7978039: net: Put more functions from escape.h into net namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/custom_handlers/protocol_handler.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698