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

Unified Diff: chrome/common/extensions/manifest_handlers/copresence_manifest.cc

Issue 2130803002: Deleting the copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/common/extensions/manifest_handlers/copresence_manifest.cc
diff --git a/chrome/common/extensions/manifest_handlers/copresence_manifest.cc b/chrome/common/extensions/manifest_handlers/copresence_manifest.cc
deleted file mode 100644
index 486d07fb0f7f2689f579dce7f60f2ff196a11da5..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/manifest_handlers/copresence_manifest.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 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/common/extensions/manifest_handlers/copresence_manifest.h"
-
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "base/strings/utf_string_conversions.h"
-#include "base/values.h"
-#include "extensions/common/manifest_constants.h"
-
-namespace extensions {
-
-CopresenceManifestHandler::CopresenceManifestHandler() {
-}
-
-CopresenceManifestHandler::~CopresenceManifestHandler() {
-}
-
-bool CopresenceManifestHandler::Parse(Extension* extension,
- base::string16* error) {
- const base::DictionaryValue* copresence_config = nullptr;
-
- if (!extension->manifest()->GetDictionary(manifest_keys::kCopresence,
- &copresence_config)) {
- *error = base::ASCIIToUTF16(manifest_errors::kInvalidCopresenceConfig);
- return false;
- }
-
- std::unique_ptr<CopresenceManifestData> manifest_data(
- new CopresenceManifestData);
- if (!copresence_config->GetString(manifest_values::kApiKey,
- &manifest_data->api_key) ||
- manifest_data->api_key.empty()) {
- *error = base::ASCIIToUTF16(manifest_errors::kInvalidCopresenceApiKey);
- return false;
- }
-
- extension->SetManifestData(manifest_keys::kCopresence,
- manifest_data.release());
- return true;
-}
-
-const std::vector<std::string> CopresenceManifestHandler::Keys() const {
- return SingleKey(manifest_keys::kCopresence);
-}
-
-CopresenceManifestData::CopresenceManifestData() {
-}
-
-CopresenceManifestData::~CopresenceManifestData() {
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698