| 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/common/extensions/extension.h" | 5 #include "chrome/common/extensions/extension.h" |
| 6 | 6 |
| 7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 } | 652 } |
| 653 } else { | 653 } else { |
| 654 ++iter; | 654 ++iter; |
| 655 continue; | 655 continue; |
| 656 } | 656 } |
| 657 } | 657 } |
| 658 } | 658 } |
| 659 } | 659 } |
| 660 *error = errors::kInvalidThemeColors; | 660 *error = errors::kInvalidThemeColors; |
| 661 return false; | 661 return false; |
| 662 ++iter; | |
| 663 } | 662 } |
| 664 theme_colors_.reset( | 663 theme_colors_.reset( |
| 665 static_cast<DictionaryValue*>(colors_value->DeepCopy())); | 664 static_cast<DictionaryValue*>(colors_value->DeepCopy())); |
| 666 } | 665 } |
| 667 | 666 |
| 668 DictionaryValue* tints_value; | 667 DictionaryValue* tints_value; |
| 669 if (theme_value->GetDictionary(keys::kThemeTints, &tints_value)) { | 668 if (theme_value->GetDictionary(keys::kThemeTints, &tints_value)) { |
| 670 // Validate that the tints are all reals. | 669 // Validate that the tints are all reals. |
| 671 DictionaryValue::key_iterator iter = tints_value->begin_keys(); | 670 DictionaryValue::key_iterator iter = tints_value->begin_keys(); |
| 672 while (iter != tints_value->end_keys()) { | 671 while (iter != tints_value->end_keys()) { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 it != page_actions().end(); ++it) { | 883 it != page_actions().end(); ++it) { |
| 885 const std::vector<std::string>& icon_paths = it->second->icon_paths(); | 884 const std::vector<std::string>& icon_paths = it->second->icon_paths(); |
| 886 for (std::vector<std::string>::const_iterator iter = icon_paths.begin(); | 885 for (std::vector<std::string>::const_iterator iter = icon_paths.begin(); |
| 887 iter != icon_paths.end(); ++iter) { | 886 iter != icon_paths.end(); ++iter) { |
| 888 image_paths.insert(FilePath::FromWStringHack(UTF8ToWide(*iter))); | 887 image_paths.insert(FilePath::FromWStringHack(UTF8ToWide(*iter))); |
| 889 } | 888 } |
| 890 } | 889 } |
| 891 | 890 |
| 892 return image_paths; | 891 return image_paths; |
| 893 } | 892 } |
| OLD | NEW |