chrome/browser/web_resource/notification_promo.cc
// Returns a string suitable for the Promo Server URL 'dist' value.
Returns a string suitable for the Promo Server URL 'dist' value.
Returns a string suitable for the Promo Server URL ' dist ' value .
const char* ChannelString() {
#if defined (OS_WIN)
  base::ThreadRestrictions::ScopedAllowIO allow_io;
#endif
  const chrome::VersionInfo::Channel channel =
      chrome::VersionInfo::GetChannel();
  switch (channel) {
    case chrome::VersionInfo::CHANNEL_CANARY:
      return "canary";
    case chrome::VersionInfo::CHANNEL_DEV:
      return "dev";
    case chrome::VersionInfo::CHANNEL_BETA:
      return "beta";
    case chrome::VersionInfo::CHANNEL_STABLE:
      return "stable";
    default:
      return "none";
  }
}
const char * ChannelString ( ) { #if defined ( OS_WIN ) base :: ThreadRestrictions :: ScopedAllowIO allow_io ; #endif const chrome :: VersionInfo :: Channel channel = chrome :: VersionInfo :: GetChannel ( ) ; switch ( channel ) { case chrome :: VersionInfo :: CHANNEL_CANARY : return " " ; case chrome :: VersionInfo :: CHANNEL_DEV : return " " ; case chrome :: VersionInfo :: CHANNEL_BETA : return " " ; case chrome :: VersionInfo :: CHANNEL_STABLE : return " " ; default : return " " ; } }
Returns a string suitable for the Promo Server URL 'dist' value.
Returns a string suitable for the Promo Server URL ' dist ' value .
// GetChannel hits the registry on Windows. See http://crbug.com/70898. // TODO(achuith): Move NotificationPromo::PromoServerURL to the blocking pool.