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

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

Issue 11786003: Move Icons out of Extension class (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_unref_browser_action
Patch Set: License year update Created 7 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
Index: chrome/common/extensions/extension_file_util.cc
diff --git a/chrome/common/extensions/extension_file_util.cc b/chrome/common/extensions/extension_file_util.cc
index 5a225d88d02e24ce707fb7ef9539a75212f02786..72ca09dd4c31c9ef69bd4795cde53635bae4d77f 100644
--- a/chrome/common/extensions/extension_file_util.cc
+++ b/chrome/common/extensions/extension_file_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 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.
@@ -21,6 +21,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/api/extension_action/action_info.h"
#include "chrome/common/extensions/api/extension_action/browser_action_handler.h"
+#include "chrome/common/extensions/api/icons/icons_handler.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_l10n_util.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
@@ -247,8 +248,8 @@ bool ValidateExtension(const Extension* extension,
Extension::InstallWarningVector* warnings) {
// Validate icons exist.
for (ExtensionIconSet::IconMap::const_iterator iter =
- extension->icons().map().begin();
- iter != extension->icons().map().end();
+ extensions::IconsInfo::GetIcons(extension).map().begin();
+ iter != extensions::IconsInfo::GetIcons(extension).map().end();
++iter) {
const FilePath path = extension->GetResource(iter->second).GetFilePath();
if (!ValidateFilePath(path)) {

Powered by Google App Engine
This is Rietveld 408576698