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

Side by Side Diff: chrome/browser/net/url_info.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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 | Annotate | Revision Log
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 "chrome/browser/net/url_info.h" 5 #include "chrome/browser/net/url_info.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <math.h> 8 #include <math.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 case NO_PREFETCH_MOTIVATION: 354 case NO_PREFETCH_MOTIVATION:
355 return "n/a"; 355 return "n/a";
356 356
357 case STATIC_REFERAL_MOTIVATED: 357 case STATIC_REFERAL_MOTIVATED:
358 return RemoveJs(referring_url_.spec()) + "*"; 358 return RemoveJs(referring_url_.spec()) + "*";
359 359
360 case LEARNED_REFERAL_MOTIVATED: 360 case LEARNED_REFERAL_MOTIVATED:
361 return RemoveJs(referring_url_.spec()); 361 return RemoveJs(referring_url_.spec());
362 362
363 default: 363 default:
364 return ""; 364 return std::string();
365 } 365 }
366 } 366 }
367 367
368 } // namespace chrome_browser_net 368 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc ('k') | chrome/browser/page_cycler/page_cycler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698