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

Unified Diff: content/browser/manifest/manifest_icon_selector.cc

Issue 2933743002: Move chrome/browser/manifest to content/browser. (Closed)
Patch Set: rebased Created 3 years, 6 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: content/browser/manifest/manifest_icon_selector.cc
diff --git a/chrome/browser/manifest/manifest_icon_selector.cc b/content/browser/manifest/manifest_icon_selector.cc
similarity index 92%
rename from chrome/browser/manifest/manifest_icon_selector.cc
rename to content/browser/manifest/manifest_icon_selector.cc
index 3093224b1f9d0090ac6a9f044d8e4e31e053d62d..80dc5a98af62b2dd09124ae383f5ca2769938aec 100644
--- a/chrome/browser/manifest/manifest_icon_selector.cc
+++ b/content/browser/manifest/manifest_icon_selector.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/manifest/manifest_icon_selector.h"
+#include "content/public/browser/manifest_icon_selector.h"
#include <limits>
@@ -10,12 +10,14 @@
#include "base/strings/utf_string_conversions.h"
#include "components/mime_util/mime_util.h"
+namespace content {
+
// static
GURL ManifestIconSelector::FindBestMatchingIcon(
- const std::vector<content::Manifest::Icon>& icons,
+ const std::vector<Manifest::Icon>& icons,
int ideal_icon_size_in_px,
int minimum_icon_size_in_px,
- content::Manifest::Icon::IconPurpose purpose) {
+ Manifest::Icon::IconPurpose purpose) {
DCHECK(minimum_icon_size_in_px <= ideal_icon_size_in_px);
// Icon with exact matching size has priority over icon with size "any", which
@@ -80,3 +82,5 @@ GURL ManifestIconSelector::FindBestMatchingIcon(
else
return GURL();
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698