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

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

Issue 2624583002: Remove redundant c_str() calls. (Closed)
Patch Set: Created 3 years, 11 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 (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/first_run/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 internal::CreateSentinel(); 679 internal::CreateSentinel();
680 } 680 }
681 681
682 std::string GetPingDelayPrefName() { 682 std::string GetPingDelayPrefName() {
683 return base::StringPrintf("%s.%s", 683 return base::StringPrintf("%s.%s",
684 installer::master_preferences::kDistroDict, 684 installer::master_preferences::kDistroDict,
685 installer::master_preferences::kDistroPingDelay); 685 installer::master_preferences::kDistroPingDelay);
686 } 686 }
687 687
688 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 688 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
689 registry->RegisterIntegerPref(GetPingDelayPrefName().c_str(), 0); 689 registry->RegisterIntegerPref(GetPingDelayPrefName(), 0);
690 } 690 }
691 691
692 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option) { 692 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option) {
693 PrefService* local_state = g_browser_process->local_state(); 693 PrefService* local_state = g_browser_process->local_state();
694 if (!local_state) 694 if (!local_state)
695 return false; 695 return false;
696 if (local_state->GetInteger( 696 if (local_state->GetInteger(
697 prefs::kShowFirstRunBubbleOption) != FIRST_RUN_BUBBLE_SUPPRESS) { 697 prefs::kShowFirstRunBubbleOption) != FIRST_RUN_BUBBLE_SUPPRESS) {
698 // Set the new state as long as the bubble wasn't explicitly suppressed 698 // Set the new state as long as the bubble wasn't explicitly suppressed
699 // already. 699 // already.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 SetShouldDoPersonalDataManagerFirstRun(); 857 SetShouldDoPersonalDataManagerFirstRun();
858 858
859 internal::DoPostImportPlatformSpecificTasks(profile); 859 internal::DoPostImportPlatformSpecificTasks(profile);
860 } 860 }
861 861
862 uint16_t auto_import_state() { 862 uint16_t auto_import_state() {
863 return g_auto_import_state; 863 return g_auto_import_state;
864 } 864 }
865 865
866 } // namespace first_run 866 } // namespace first_run
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698