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

Unified Diff: components/gcm_driver/instance_id/instance_id_driver.cc

Issue 1736433002: Remove InstanceID field trial, since it is always enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/variations/fieldtrial_testing_config_linux.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/instance_id/instance_id_driver.cc
diff --git a/components/gcm_driver/instance_id/instance_id_driver.cc b/components/gcm_driver/instance_id/instance_id_driver.cc
index 9ec01c46b39266d835cd4d58604207f07dc775c8..31585bff27bae8525d4ee5f26200cb44ccf97439 100644
--- a/components/gcm_driver/instance_id/instance_id_driver.cc
+++ b/components/gcm_driver/instance_id/instance_id_driver.cc
@@ -4,28 +4,18 @@
#include "components/gcm_driver/instance_id/instance_id_driver.h"
-#include "base/metrics/field_trial.h"
#include "build/build_config.h"
#include "components/gcm_driver/instance_id/instance_id.h"
namespace instance_id {
-namespace {
-#if !defined(OS_ANDROID)
-const char kInstanceIDFieldTrialName[] = "InstanceID";
-const char kInstanceIDFieldTrialEnabledGroupName[] = "Enabled";
-#endif // !defined(OS_ANDROID)
-} // namespace
-
// static
bool InstanceIDDriver::IsInstanceIDEnabled() {
#if defined(OS_ANDROID)
// Not implemented yet.
return false;
#else
- std::string group_name =
- base::FieldTrialList::FindFullName(kInstanceIDFieldTrialName);
- return group_name == kInstanceIDFieldTrialEnabledGroupName;
+ return true;
#endif // defined(OS_ANDROID)
}
« no previous file with comments | « no previous file | testing/variations/fieldtrial_testing_config_linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698