Commit ff5692ed authored by mihaip@chromium.org's avatar mihaip@chromium.org

Log the channel that we're on when failing due to unsupported features, to aid in debugging.

R=kalman@chromium.org


Review URL: https://chromiumcodereview.appspot.com/10837275

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151847 0039d316-1c4b-4281-b951-d872f2087c98
parent 9ed90834
...@@ -247,9 +247,11 @@ std::string Feature::GetErrorMessage(Feature::Availability result) { ...@@ -247,9 +247,11 @@ std::string Feature::GetErrorMessage(Feature::Availability result) {
name().c_str()); name().c_str());
case UNSUPPORTED_CHANNEL: case UNSUPPORTED_CHANNEL:
return base::StringPrintf( return base::StringPrintf(
"'%s' requires Google Chrome %s channel or newer.", "'%s' requires Google Chrome %s channel or newer, and we're running "
"on the %s channel.",
name().c_str(), name().c_str(),
GetChannelName(channel_).c_str()); GetChannelName(channel_).c_str(),
GetChannelName(GetCurrentChannel()).c_str());
} }
return ""; return "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment