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

Unified Diff: chrome/common/extensions/extension_sidebar_utils.cc

Issue 9006027: Rip Out the Sidebar API (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « chrome/common/extensions/extension_sidebar_utils.h ('k') | chrome/common/extensions/manifest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_sidebar_utils.cc
===================================================================
--- chrome/common/extensions/extension_sidebar_utils.cc (revision 116830)
+++ chrome/common/extensions/extension_sidebar_utils.cc (working copy)
@@ -1,37 +0,0 @@
-// Copyright (c) 2010 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/extension_sidebar_utils.h"
-
-#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_error_utils.h"
-#include "googleurl/src/gurl.h"
-
-namespace {
-
-// Errors.
-const char kInvalidPathError[] = "Invalid path: \"*\".";
-
-} // namespace
-
-namespace extension_sidebar_utils {
-
-std::string GetExtensionIdByContentId(const std::string& content_id) {
- // At the moment, content_id == extension_id.
- return content_id;
-}
-
-GURL ResolveRelativePath(const std::string& relative_path,
- const Extension* extension,
- std::string* error) {
- GURL url(extension->GetResourceURL(relative_path));
- if (!url.is_valid()) {
- *error = ExtensionErrorUtils::FormatErrorMessage(kInvalidPathError,
- relative_path);
- return GURL();
- }
- return url;
-}
-
-} // namespace extension_sidebar_utils
« no previous file with comments | « chrome/common/extensions/extension_sidebar_utils.h ('k') | chrome/common/extensions/manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698