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

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

Issue 1830983002: Implement InstanceIDAndroid using InstanceIDWithSubtype.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid1subtype
Patch Set: Rebase Created 4 years, 8 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
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 374be2244a51c26945eddc7c0807fe702c45b07d..937d77b4bb416cadd1d672bb16d9feffc21bfb78 100644
--- a/components/gcm_driver/instance_id/instance_id_driver.cc
+++ b/components/gcm_driver/instance_id/instance_id_driver.cc
@@ -12,22 +12,15 @@
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;
-#endif // defined(OS_ANDROID)
}
InstanceIDDriver::InstanceIDDriver(gcm::GCMDriver* gcm_driver)

Powered by Google App Engine
This is Rietveld 408576698