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

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: rebase again Created 5 years 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 310 }
311 } else { 311 } else {
312 NOTREACHED(); 312 NOTREACHED();
313 } 313 }
314 314
315 return new ProfileImpl( 315 return new ProfileImpl(
316 path, delegate, create_mode, sequenced_task_runner.get()); 316 path, delegate, create_mode, sequenced_task_runner.get());
317 } 317 }
318 318
319 // static 319 // static
320 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; 320 const char ProfileImpl::kPrefExitTypeNormal[] = "Normal";
321 321
322 // static 322 // static
323 void ProfileImpl::RegisterProfilePrefs( 323 void ProfileImpl::RegisterProfilePrefs(
324 user_prefs::PrefRegistrySyncable* registry) { 324 user_prefs::PrefRegistrySyncable* registry) {
325 registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, false); 325 registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, false);
326 registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory, true); 326 registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory, true);
327 registry->RegisterBooleanPref(prefs::kForceGoogleSafeSearch, false); 327 registry->RegisterBooleanPref(prefs::kForceGoogleSafeSearch, false);
328 registry->RegisterBooleanPref(prefs::kForceYouTubeSafetyMode, false); 328 registry->RegisterBooleanPref(prefs::kForceYouTubeSafetyMode, false);
329 registry->RegisterBooleanPref(prefs::kRecordHistory, false); 329 registry->RegisterBooleanPref(prefs::kRecordHistory, false);
330 registry->RegisterIntegerPref( 330 registry->RegisterIntegerPref(
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1282 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1283 domain_reliability::DomainReliabilityService* service = 1283 domain_reliability::DomainReliabilityService* service =
1284 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1284 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1285 GetForBrowserContext(this); 1285 GetForBrowserContext(this);
1286 if (!service) 1286 if (!service)
1287 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1287 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1288 1288
1289 return service->CreateMonitor( 1289 return service->CreateMonitor(
1290 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1290 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
1291 } 1291 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698