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

Side by Side Diff: components/gcm_driver/gcm_driver_desktop.cc

Issue 1159553007: Move Tuple to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 #include "components/gcm_driver/gcm_driver_desktop.h" 5 #include "components/gcm_driver/gcm_driver_desktop.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 1225
1226 // Normally request_gcm_statistics_callback_ would not be null. 1226 // Normally request_gcm_statistics_callback_ would not be null.
1227 if (!request_gcm_statistics_callback_.is_null()) 1227 if (!request_gcm_statistics_callback_.is_null())
1228 request_gcm_statistics_callback_.Run(stats); 1228 request_gcm_statistics_callback_.Run(stats);
1229 else 1229 else
1230 LOG(WARNING) << "request_gcm_statistics_callback_ is NULL."; 1230 LOG(WARNING) << "request_gcm_statistics_callback_ is NULL.";
1231 } 1231 }
1232 1232
1233 bool GCMDriverDesktop::TokenTupleComparer::operator()( 1233 bool GCMDriverDesktop::TokenTupleComparer::operator()(
1234 const TokenTuple& a, const TokenTuple& b) const { 1234 const TokenTuple& a, const TokenTuple& b) const {
1235 if (get<0>(a) < get<0>(b)) 1235 if (base::get<0>(a) < base::get<0>(b))
1236 return true; 1236 return true;
1237 if (get<0>(a) > get<0>(b)) 1237 if (base::get<0>(a) > base::get<0>(b))
1238 return false; 1238 return false;
1239 1239
1240 if (get<1>(a) < get<1>(b)) 1240 if (base::get<1>(a) < base::get<1>(b))
1241 return true; 1241 return true;
1242 if (get<1>(a) > get<1>(b)) 1242 if (base::get<1>(a) > base::get<1>(b))
1243 return false; 1243 return false;
1244 1244
1245 return get<2>(a) < get<2>(b); 1245 return base::get<2>(a) < base::get<2>(b);
1246 } 1246 }
1247 1247
1248 } // namespace gcm 1248 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop.h ('k') | components/guest_view/renderer/guest_view_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698