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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 2 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/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 StartupBrowserCreator::ProcessCommandLineAlreadyRunning( 461 StartupBrowserCreator::ProcessCommandLineAlreadyRunning(
462 command_line, current_directory); 462 command_line, current_directory);
463 return true; 463 return true;
464 } 464 }
465 465
466 bool HasImportSwitch(const CommandLine& command_line) { 466 bool HasImportSwitch(const CommandLine& command_line) {
467 return (command_line.HasSwitch(switches::kImport) || 467 return (command_line.HasSwitch(switches::kImport) ||
468 command_line.HasSwitch(switches::kImportFromFile)); 468 command_line.HasSwitch(switches::kImportFromFile));
469 } 469 }
470 470
471 #if defined(ENABLE_RLZ)
471 bool IsGoogleUrl(const GURL& url) { 472 bool IsGoogleUrl(const GURL& url) {
472 return google_util::IsGoogleHomePageUrl(url.possibly_invalid_spec()); 473 return google_util::IsGoogleHomePageUrl(url.possibly_invalid_spec());
473 } 474 }
475 #endif
474 476
475 } // namespace 477 } // namespace
476 478
477 namespace chrome_browser { 479 namespace chrome_browser {
478 // This error message is not localized because we failed to load the 480 // This error message is not localized because we failed to load the
479 // localization data files. 481 // localization data files.
480 const char kMissingLocaleDataTitle[] = "Missing File Error"; 482 const char kMissingLocaleDataTitle[] = "Missing File Error";
481 const char kMissingLocaleDataMessage[] = 483 const char kMissingLocaleDataMessage[] =
482 "Unable to find locale data files. Please reinstall."; 484 "Unable to find locale data files. Please reinstall.";
483 } // namespace chrome_browser 485 } // namespace chrome_browser
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 if (base::win::GetVersion() <= base::win::VERSION_XP) 1633 if (base::win::GetVersion() <= base::win::VERSION_XP)
1632 uma_name += "_XP"; 1634 uma_name += "_XP";
1633 1635
1634 uma_name += "_PreRead_"; 1636 uma_name += "_PreRead_";
1635 uma_name += pre_read_percentage; 1637 uma_name += pre_read_percentage;
1636 AddPreReadHistogramTime(uma_name.c_str(), time); 1638 AddPreReadHistogramTime(uma_name.c_str(), time);
1637 } 1639 }
1638 #endif 1640 #endif
1639 #endif 1641 #endif
1640 } 1642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698