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/profiles/profile_impl.cc

Issue 2943763002: Add a new group policy to disable safe browsing for files downloaded from trusted sources. (Closed)
Patch Set: Fix an XML goof Created 3 years, 5 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <set>
10 #include <utility> 11 #include <utility>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/bind.h" 14 #include "base/bind.h"
14 #include "base/callback.h" 15 #include "base/callback.h"
15 #include "base/command_line.h" 16 #include "base/command_line.h"
16 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
17 #include "base/environment.h" 18 #include "base/environment.h"
18 #include "base/files/file_path.h" 19 #include "base/files/file_path.h"
19 #include "base/files/file_util.h" 20 #include "base/files/file_util.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 #if defined(OS_ANDROID) 394 #if defined(OS_ANDROID)
394 uint32_t home_page_flags = PrefRegistry::NO_REGISTRATION_FLAGS; 395 uint32_t home_page_flags = PrefRegistry::NO_REGISTRATION_FLAGS;
395 #else 396 #else
396 uint32_t home_page_flags = user_prefs::PrefRegistrySyncable::SYNCABLE_PREF; 397 uint32_t home_page_flags = user_prefs::PrefRegistrySyncable::SYNCABLE_PREF;
397 #endif 398 #endif
398 registry->RegisterStringPref(prefs::kHomePage, 399 registry->RegisterStringPref(prefs::kHomePage,
399 std::string(), 400 std::string(),
400 home_page_flags); 401 home_page_flags);
401 registry->RegisterStringPref(prefs::kNewTabPageLocationOverride, 402 registry->RegisterStringPref(prefs::kNewTabPageLocationOverride,
402 std::string()); 403 std::string());
403 registry->RegisterIntegerPref(prefs::kDownloadRestrictions, 0);
404 404
405 #if BUILDFLAG(ENABLE_PRINTING) 405 #if BUILDFLAG(ENABLE_PRINTING)
406 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); 406 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true);
407 #endif 407 #endif
408 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); 408 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false);
409 registry->RegisterStringPref( 409 registry->RegisterStringPref(
410 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); 410 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string());
411 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); 411 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false);
412 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); 412 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true);
413 #if !defined(OS_ANDROID) 413 #if !defined(OS_ANDROID)
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 1419
1420 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { 1420 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() {
1421 AccountTrackerService* account_tracker = 1421 AccountTrackerService* account_tracker =
1422 AccountTrackerServiceFactory::GetForProfile(this); 1422 AccountTrackerServiceFactory::GetForProfile(this);
1423 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); 1423 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this);
1424 ProfileOAuth2TokenService* token_service = 1424 ProfileOAuth2TokenService* token_service =
1425 ProfileOAuth2TokenServiceFactory::GetForProfile(this); 1425 ProfileOAuth2TokenServiceFactory::GetForProfile(this);
1426 return base::MakeUnique<identity::IdentityService>( 1426 return base::MakeUnique<identity::IdentityService>(
1427 account_tracker, signin_manager, token_service); 1427 account_tracker, signin_manager, token_service);
1428 } 1428 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_list_factory.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698