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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 924793003: Cleanup: Convert const char* kFoo to const char kFoo[]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 } 293 }
294 294
295 return new ProfileImpl( 295 return new ProfileImpl(
296 path, delegate, create_mode, sequenced_task_runner.get()); 296 path, delegate, create_mode, sequenced_task_runner.get());
297 } 297 }
298 298
299 // static 299 // static
300 int ProfileImpl::create_readme_delay_ms = 60000; 300 int ProfileImpl::create_readme_delay_ms = 60000;
301 301
302 // static 302 // static
303 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; 303 const char ProfileImpl::kPrefExitTypeNormal[] = "Normal";
304 304
305 // static 305 // static
306 void ProfileImpl::RegisterProfilePrefs( 306 void ProfileImpl::RegisterProfilePrefs(
307 user_prefs::PrefRegistrySyncable* registry) { 307 user_prefs::PrefRegistrySyncable* registry) {
308 registry->RegisterBooleanPref( 308 registry->RegisterBooleanPref(
309 prefs::kSavingBrowserHistoryDisabled, 309 prefs::kSavingBrowserHistoryDisabled,
310 false, 310 false,
311 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 311 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
312 registry->RegisterBooleanPref( 312 registry->RegisterBooleanPref(
313 prefs::kAllowDeletingBrowserHistory, 313 prefs::kAllowDeletingBrowserHistory,
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1323 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1324 domain_reliability::DomainReliabilityService* service = 1324 domain_reliability::DomainReliabilityService* service =
1325 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1325 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1326 GetForBrowserContext(this); 1326 GetForBrowserContext(this);
1327 if (!service) 1327 if (!service)
1328 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1328 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1329 1329
1330 return service->CreateMonitor( 1330 return service->CreateMonitor(
1331 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1331 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
1332 } 1332 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698