| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/icon_manager.h" | 5 #include "chrome/browser/icon_manager.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 | 8 |
| 9 IconGroupID IconManager::GetGroupIDFromFilepath( | 9 IconGroupID IconManager::ReadGroupIDFromFilepath( |
| 10 const base::FilePath& filepath) { | 10 const base::FilePath& filepath) { |
| 11 std::wstring extension = filepath.Extension(); | 11 std::wstring extension = filepath.Extension(); |
| 12 if (extension != L".exe" && extension != L".dll" && extension != L".ico") | 12 if (extension != L".exe" && extension != L".dll" && extension != L".ico") |
| 13 return extension; | 13 return extension; |
| 14 else | 14 else |
| 15 return filepath.value(); | 15 return filepath.value(); |
| 16 } | 16 } |
| OLD | NEW |