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

Unified Diff: chrome/browser/push_messaging/push_messaging_application_id.cc

Issue 955673004: Move gcm-independent parts of push messaging out of gcm namespace and directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/push_messaging/push_messaging_application_id.cc
diff --git a/chrome/browser/services/gcm/push_messaging_application_id.cc b/chrome/browser/push_messaging/push_messaging_application_id.cc
similarity index 97%
rename from chrome/browser/services/gcm/push_messaging_application_id.cc
rename to chrome/browser/push_messaging/push_messaging_application_id.cc
index c35e396821c219d76c4d2a3f01dd7781028aba3c..c7cb8e7cda0d7308987a821f4f46d08146f06fc1 100644
--- a/chrome/browser/services/gcm/push_messaging_application_id.cc
+++ b/chrome/browser/push_messaging/push_messaging_application_id.cc
@@ -1,8 +1,8 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/services/gcm/push_messaging_application_id.h"
+#include "chrome/browser/push_messaging/push_messaging_application_id.h"
#include "base/guid.h"
#include "base/logging.h"
@@ -19,8 +19,6 @@ namespace {
const char kSeparator = '#'; // Ok as only the origin of the url is used.
} // namespace
-namespace gcm {
-
const char kPushMessagingApplicationIdPrefix[] = "wp:";
// static
@@ -158,5 +156,3 @@ bool PushMessagingApplicationId::IsValid() const {
&& !app_id_guid_.compare(0, prefix_len, kPushMessagingApplicationIdPrefix)
&& base::IsValidGUID(app_id_guid_.substr(prefix_len, std::string::npos));
}
-
-} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698