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

Side by Side Diff: ui/gfx/image/image.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/gfx/image/image.h" 5 #include "ui/gfx/image/image.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 750
751 internal::ImageRep* Image::AddRepresentation( 751 internal::ImageRep* Image::AddRepresentation(
752 std::unique_ptr<internal::ImageRep> rep) const { 752 std::unique_ptr<internal::ImageRep> rep) const {
753 CHECK(storage_.get()); 753 CHECK(storage_.get());
754 RepresentationType type = rep->type(); 754 RepresentationType type = rep->type();
755 auto result = 755 auto result =
756 storage_->representations().insert(std::make_pair(type, std::move(rep))); 756 storage_->representations().insert(std::make_pair(type, std::move(rep)));
757 757
758 // insert should not fail (implies that there was already a representation of 758 // insert should not fail (implies that there was already a representation of
759 // that type in the map). 759 // that type in the map).
760 CHECK(result.second) << "type was already in map."; 760 // type was already in map.
761 CHECK(result.second);
761 762
762 return result.first->second.get(); 763 return result.first->second.get();
763 } 764 }
764 765
765 } // namespace gfx 766 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698