/external/chromium_org/chrome/browser/prefs/ |
incognito_mode_prefs_unittest.cc | 14 IncognitoModePrefs::RegisterProfilePrefs(prefs_.registry()); 21 ASSERT_EQ(0, IncognitoModePrefs::ENABLED); 22 ASSERT_EQ(1, IncognitoModePrefs::DISABLED); 23 ASSERT_EQ(2, IncognitoModePrefs::FORCED); 25 IncognitoModePrefs::Availability incognito; 26 EXPECT_TRUE(IncognitoModePrefs::IntToAvailability(0, &incognito)); 27 EXPECT_EQ(IncognitoModePrefs::ENABLED, incognito); 28 EXPECT_TRUE(IncognitoModePrefs::IntToAvailability(1, &incognito)); 29 EXPECT_EQ(IncognitoModePrefs::DISABLED, incognito); 30 EXPECT_TRUE(IncognitoModePrefs::IntToAvailability(2, &incognito)) [all...] |
incognito_mode_prefs.cc | 24 bool IncognitoModePrefs::IntToAvailability(int in_value, 35 IncognitoModePrefs::Availability IncognitoModePrefs::GetAvailability( 39 Availability result = IncognitoModePrefs::ENABLED; 43 if (result == IncognitoModePrefs::FORCED) 45 return IncognitoModePrefs::DISABLED; 51 void IncognitoModePrefs::SetAvailability(PrefService* prefs, 57 void IncognitoModePrefs::RegisterProfilePrefs( 61 IncognitoModePrefs::ENABLED, 66 bool IncognitoModePrefs::ShouldLaunchIncognito [all...] |
incognito_mode_prefs.h | 19 class IncognitoModePrefs { 68 DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs);
|
browser_prefs.cc | 345 IncognitoModePrefs::RegisterProfilePrefs(registry);
|
/external/chromium_org/chrome/browser/profiles/ |
incognito_mode_policy_handler_unittest.cc | 51 void VerifyValues(IncognitoModePrefs::Availability availability) { 63 SetPolicies(INCOGNITO_ENABLED_UNKNOWN, IncognitoModePrefs::ENABLED); 64 VerifyValues(IncognitoModePrefs::ENABLED); 69 SetPolicies(INCOGNITO_ENABLED_UNKNOWN, IncognitoModePrefs::DISABLED); 70 VerifyValues(IncognitoModePrefs::DISABLED); 75 SetPolicies(INCOGNITO_ENABLED_UNKNOWN, IncognitoModePrefs::FORCED); 76 VerifyValues(IncognitoModePrefs::FORCED); 91 SetPolicies(INCOGNITO_ENABLED_FALSE, IncognitoModePrefs::ENABLED); 92 VerifyValues(IncognitoModePrefs::ENABLED); 97 SetPolicies(INCOGNITO_ENABLED_TRUE, IncognitoModePrefs::FORCED) [all...] |
incognito_mode_policy_handler.cc | 26 int int_value = IncognitoModePrefs::ENABLED; 32 IncognitoModePrefs::Availability availability_enum_value; 33 if (!IncognitoModePrefs::IntToAvailability(int_value, 67 int int_value = IncognitoModePrefs::ENABLED; 68 IncognitoModePrefs::Availability availability_enum_value; 70 IncognitoModePrefs::IntToAvailability(int_value, 84 enabled ? IncognitoModePrefs::ENABLED : IncognitoModePrefs::DISABLED);
|
off_the_record_profile_impl.cc | 112 DCHECK_NE(IncognitoModePrefs::DISABLED, 113 IncognitoModePrefs::GetAvailability(profile_->GetPrefs()));
|
profile_manager_unittest.cc | 416 EXPECT_EQ(IncognitoModePrefs::ENABLED, 417 IncognitoModePrefs::GetAvailability(prefs)); 429 IncognitoModePrefs::SetAvailability(prefs, IncognitoModePrefs::DISABLED); 435 IncognitoModePrefs::SetAvailability(prefs, IncognitoModePrefs::FORCED); [all...] |
profile_manager.cc | 255 if (IncognitoModePrefs::GetAvailability(profile->GetPrefs()) == 256 IncognitoModePrefs::FORCED) { [all...] |
/external/chromium_org/chrome/browser/ui/ash/launcher/ |
launcher_context_menu_unittest.cc | 82 IncognitoModePrefs::SetAvailability(profile()->GetPrefs(), 83 IncognitoModePrefs::DISABLED); 104 IncognitoModePrefs::SetAvailability(profile()->GetPrefs(), 105 IncognitoModePrefs::FORCED);
|
launcher_context_menu.cc | 224 return IncognitoModePrefs::GetAvailability( 225 controller_->profile()->GetPrefs()) != IncognitoModePrefs::FORCED; 230 return IncognitoModePrefs::GetAvailability( 231 controller_->profile()->GetPrefs()) != IncognitoModePrefs::DISABLED;
|
/external/chromium_org/chrome/browser/ui/app_list/ |
app_context_menu.cc | 215 return IncognitoModePrefs::GetAvailability(profile_->GetPrefs()) != 216 IncognitoModePrefs::FORCED; 219 return IncognitoModePrefs::GetAvailability(profile_->GetPrefs()) != 220 IncognitoModePrefs::DISABLED;
|
/external/chromium_org/chrome/browser/ui/bookmarks/ |
bookmark_context_menu_controller.cc | 314 IncognitoModePrefs::Availability incognito_avail = 315 IncognitoModePrefs::GetAvailability(prefs); 319 incognito_avail != IncognitoModePrefs::DISABLED; 325 incognito_avail != IncognitoModePrefs::DISABLED; 331 incognito_avail != IncognitoModePrefs::FORCED;
|
/external/chromium_org/chrome/browser/extensions/api/tabs/ |
tabs_test.cc | 255 IncognitoModePrefs::SetAvailability(browser()->profile()->GetPrefs(), 256 IncognitoModePrefs::FORCED); 296 IncognitoModePrefs::SetAvailability(browser()->profile()->GetPrefs(), 297 IncognitoModePrefs::FORCED); 336 IncognitoModePrefs::SetAvailability(browser()->profile()->GetPrefs(), 337 IncognitoModePrefs::FORCED); 368 IncognitoModePrefs::SetAvailability(browser()->profile()->GetPrefs(), 369 IncognitoModePrefs::DISABLED);
|
tabs_api.cc | 321 const IncognitoModePrefs::Availability incognito_availability = 322 IncognitoModePrefs::GetAvailability(GetProfile()->GetPrefs()); 326 if (incognito && incognito_availability == IncognitoModePrefs::DISABLED) { 331 if (!incognito && incognito_availability == IncognitoModePrefs::FORCED) { 336 } else if (incognito_availability == IncognitoModePrefs::FORCED) { [all...] |
/external/chromium_org/chrome/browser/extensions/ |
extension_tabs_apitest.cc | 244 IncognitoModePrefs::SetAvailability(browser()->profile()->GetPrefs(), 245 IncognitoModePrefs::DISABLED);
|
/external/chromium_org/chrome/browser/managed_mode/ |
supervised_user_pref_store.cc | 96 new FundamentalValue(IncognitoModePrefs::DISABLED));
|
/external/chromium_org/chrome/browser/ui/webui/ntp/android/ |
context_menu_handler.cc | 59 bool incognito_enabled = pref_value != IncognitoModePrefs::DISABLED;
|
/external/chromium_org/chrome/browser/ui/ |
browser_command_controller.cc | [all...] |
browser_browsertest.cc | [all...] |
browser_navigator.cc | 105 if (prefs && IncognitoModePrefs::GetAvailability(prefs) == 106 IncognitoModePrefs::FORCED) {
|
browser_commands.cc | 276 if (IncognitoModePrefs::GetAvailability(prefs) == 277 IncognitoModePrefs::DISABLED) { 282 IncognitoModePrefs::ShouldLaunchIncognito( [all...] |
/external/chromium_org/chrome/browser/tab_contents/ |
render_view_context_menu_unittest.cc | 285 IncognitoModePrefs::SetAvailability(profile()->GetPrefs(), 286 IncognitoModePrefs::DISABLED);
|
/external/chromium_org/chrome/browser/ui/startup/ |
startup_browser_creator.cc | 282 if (IncognitoModePrefs::ShouldLaunchIncognito(command_line, 387 IncognitoModePrefs::ShouldLaunchIncognito(command_line, prefs)) { 653 !IncognitoModePrefs::ShouldLaunchIncognito(
|
/external/chromium_org/chrome/browser/ui/extensions/ |
extension_install_ui_default.cc | 60 if (!IncognitoModePrefs::CanOpenBrowser(profile))
|