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

Side by Side Diff: chrome/common/extensions/extension.cc

Issue 165376: Merge 23083 - Remove unreachable code from extension.cc.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/chrome/common/extensions/extension.cc:r23083
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698