blob: b1eb860e720e2306f5dc2c078b185872113703ae [file] [log] [blame]
[email protected]0f38ceae2009-05-08 19:01:021// Copyright (c) 2009 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/icon_manager.h"
6
7#include "base/file_path.h"
8
9IconGroupID IconManager::GetGroupIDFromFilepath(const FilePath& filepath) {
10 std::wstring extension = filepath.Extension();
11 if (extension != L".exe" && extension != L".dll" && extension != L".ico")
12 return extension;
13 else
14 return filepath.value();
15}