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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_position_cache.mm

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: Yank unrelated changes. Created 3 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "ios/chrome/browser/ui/bookmarks/bookmark_position_cache.h" 5 #import "ios/chrome/browser/ui/bookmarks/bookmark_position_cache.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/objc_property_releaser.h" 10 #include "base/mac/objc_release_properties.h"
sdefresne 2017/02/14 16:34:26 Remove.
Sidney San Martín 2017/02/14 21:38:15 Done.
11 11
12 namespace { 12 namespace {
13 // The current version of the cached position. This number should be incremented 13 // The current version of the cached position. This number should be incremented
14 // each time the NSCoding implementation changes. 14 // each time the NSCoding implementation changes.
15 const int kVersion = 2; 15 const int kVersion = 2;
16 16
17 // The value 3 was used for items corresponding to managed bookmarks and 17 // The value 3 was used for items corresponding to managed bookmarks and
18 // was removed during the transition from UIWebView to WKWebView. 18 // was removed during the transition from UIWebView to WKWebView.
19 const int kMenuItemManaged = 3; 19 const int kMenuItemManaged = 3;
20 20
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 - (void)encodeWithCoder:(NSCoder*)coder { 126 - (void)encodeWithCoder:(NSCoder*)coder {
127 [coder encodeInt:kVersion forKey:kVersionKey]; 127 [coder encodeInt:kVersion forKey:kVersionKey];
128 [coder encodeInt:static_cast<int>(self.type) forKey:kTypeKey]; 128 [coder encodeInt:static_cast<int>(self.type) forKey:kTypeKey];
129 [coder encodeFloat:self.position forKey:kPositionKey]; 129 [coder encodeFloat:self.position forKey:kPositionKey];
130 [coder encodeInt64:self.folderId forKey:kFolderKey]; 130 [coder encodeInt64:self.folderId forKey:kFolderKey];
131 } 131 }
132 132
133 @end 133 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698