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

Side by Side Diff: chrome/common/chrome_content_client_ios.mm

Issue 16599010: Surface Chrome SVN Revision in dev tools 'version' command (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "chrome/common/chrome_version_info.h" 9 #include "chrome/common/chrome_version_info.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return false; 48 return false;
49 } 49 }
50 50
51 std::string ChromeContentClient::GetProduct() const { 51 std::string ChromeContentClient::GetProduct() const {
52 chrome::VersionInfo version_info; 52 chrome::VersionInfo version_info;
53 std::string product("CriOS/"); 53 std::string product("CriOS/");
54 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; 54 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0";
55 return product; 55 return product;
56 } 56 }
57 57
58 std::string ChromeContentClient::GetProductSCMRevision() const {
59 chrome::VersionInfo version_info;
60 std::string revision("@");
61 revision += version_info.is_valid() ? version_info.LastChange() : "0";
62 return revision;
63 }
64
58 std::string ChromeContentClient::GetUserAgent() const { 65 std::string ChromeContentClient::GetUserAgent() const {
59 std::string product = GetProduct(); 66 std::string product = GetProduct();
60 return webkit_glue::BuildUserAgentFromProduct(product); 67 return webkit_glue::BuildUserAgentFromProduct(product);
61 } 68 }
62 69
63 string16 ChromeContentClient::GetLocalizedString(int message_id) const { 70 string16 ChromeContentClient::GetLocalizedString(int message_id) const {
64 return l10n_util::GetStringUTF16(message_id); 71 return l10n_util::GetStringUTF16(message_id);
65 } 72 }
66 73
67 base::StringPiece ChromeContentClient::GetDataResource( 74 base::StringPiece ChromeContentClient::GetDataResource(
(...skipping 11 matching lines...) Expand all
79 gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const { 86 gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const {
80 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id); 87 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
81 } 88 }
82 89
83 std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) { 90 std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) {
84 DCHECK(false) << "Unknown child process type!"; 91 DCHECK(false) << "Unknown child process type!";
85 return "Unknown"; 92 return "Unknown";
86 } 93 }
87 94
88 } // namespace chrome 95 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | content/browser/devtools/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698