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

Unified Diff: ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm
diff --git a/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm b/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm
index 78f877284c3717eb2077ba1e651a894780c05d7c..3d96d44fb520f6f934fd24eebd2b113f7ce86d00 100644
--- a/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm
+++ b/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm
@@ -75,7 +75,7 @@ DistantSession::DistantSession(syncer::SyncService* sync_service,
std::vector<const sync_sessions::SyncedSession*> sessions;
open_tabs->GetAllForeignSessions(&sessions);
- for (const auto& session : sessions) {
+ for (const auto* session : sessions) {
if (tag == session->session_tag) {
this->InitWithSyncedSession(session, open_tabs);
}
@@ -100,7 +100,7 @@ void DistantSession::InitWithSyncedSession(
std::vector<const sessions::SessionTab*> session_tabs;
open_tabs->GetForeignSessionTabs(synced_session->session_tag,
&session_tabs);
- for (const auto& session_tab : session_tabs) {
+ for (const auto* session_tab : session_tabs) {
AddTabToDistantSession(*session_tab, synced_session->session_tag, this);
}
} else {
@@ -128,7 +128,7 @@ SyncedSessions::SyncedSessions(syncer::SyncService* sync_service) {
std::vector<const sync_sessions::SyncedSession*> sessions;
open_tabs->GetAllForeignSessions(&sessions);
- for (const auto& session : sessions) {
+ for (const auto* session : sessions) {
std::unique_ptr<DistantSession> distant_session(new DistantSession());
distant_session->InitWithSyncedSession(session, open_tabs);
// Don't display sessions with no tabs.
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/omnibox/location_bar_view_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698