| Index: chrome/browser/background/background_application_list_model.cc
|
| diff --git a/chrome/browser/background/background_application_list_model.cc b/chrome/browser/background/background_application_list_model.cc
|
| index 50c426b7a0129c93b50c99efdfc459428956b71b..0808b263797de0b5bfaa7c07fd753874125aae38 100644
|
| --- a/chrome/browser/background/background_application_list_model.cc
|
| +++ b/chrome/browser/background/background_application_list_model.cc
|
| @@ -7,7 +7,6 @@
|
| #include <algorithm>
|
| #include <set>
|
|
|
| -#include "base/sha1.h"
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -292,16 +291,14 @@ bool BackgroundApplicationListModel::RequiresBackgroundModeForPushMessaging(
|
| // uses push messaging.
|
| // TODO(dimich): remove this whitelist once we have a better way to keep
|
| // listening for GCM. http://crbug.com/311268
|
| - std::string id_hash = base::SHA1HashString(extension.id());
|
| - std::string hexencoded_id_hash = base::HexEncode(id_hash.c_str(),
|
| - id_hash.length());
|
| + std::string hexencoded_id_hash = extension.HashedIdInHex();
|
| // The id starting from "9A04..." is a one from unit test.
|
| if (hexencoded_id_hash == "C41AD9DCD670210295614257EF8C9945AD68D86E" ||
|
| hexencoded_id_hash == "9A0417016F345C934A1A88F55CA17C05014EEEBA")
|
| return false;
|
|
|
| - return true;
|
| - }
|
| + return true;
|
| +}
|
|
|
| // static
|
| bool BackgroundApplicationListModel::IsBackgroundApp(
|
|
|