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

Side by Side Diff: ios/chrome/browser/ntp_tiles/most_visited_sites_observer_bridge.mm

Issue 2936393003: [ObjC ARC] Converts ios/chrome/browser/ntp_tiles:ntp_tiles to ARC. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « ios/chrome/browser/ntp_tiles/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/ntp_tiles/most_visited_sites_observer_bridge.h" 5 #import "ios/chrome/browser/ntp_tiles/most_visited_sites_observer_bridge.h"
6 6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
7 namespace ntp_tiles { 11 namespace ntp_tiles {
8 12
9 MostVisitedSitesObserverBridge::MostVisitedSitesObserverBridge( 13 MostVisitedSitesObserverBridge::MostVisitedSitesObserverBridge(
10 id<MostVisitedSitesObserving> observer) { 14 id<MostVisitedSitesObserving> observer) {
11 observer_.reset(observer); 15 observer_.reset(observer);
12 } 16 }
13 17
14 MostVisitedSitesObserverBridge::~MostVisitedSitesObserverBridge() {} 18 MostVisitedSitesObserverBridge::~MostVisitedSitesObserverBridge() {}
15 19
16 void MostVisitedSitesObserverBridge::OnMostVisitedURLsAvailable( 20 void MostVisitedSitesObserverBridge::OnMostVisitedURLsAvailable(
17 const NTPTilesVector& most_visited) { 21 const NTPTilesVector& most_visited) {
18 [observer_ onMostVisitedURLsAvailable:most_visited]; 22 [observer_ onMostVisitedURLsAvailable:most_visited];
19 } 23 }
20 24
21 void MostVisitedSitesObserverBridge::OnIconMadeAvailable(const GURL& site_url) { 25 void MostVisitedSitesObserverBridge::OnIconMadeAvailable(const GURL& site_url) {
22 [observer_ onIconMadeAvailable:site_url]; 26 [observer_ onIconMadeAvailable:site_url];
23 } 27 }
24 28
25 } // namespace ntp_tiles 29 } // namespace ntp_tiles
OLDNEW
« no previous file with comments | « ios/chrome/browser/ntp_tiles/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698