OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif // OS_WIN | 10 #endif // OS_WIN |
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2151 PrefService::UNSYNCABLE_PREF); | 2151 PrefService::UNSYNCABLE_PREF); |
2152 prefs->RegisterBooleanPref(prefs::kUseVerticalTabs, | 2152 prefs->RegisterBooleanPref(prefs::kUseVerticalTabs, |
2153 false, | 2153 false, |
2154 PrefService::UNSYNCABLE_PREF); | 2154 PrefService::UNSYNCABLE_PREF); |
2155 prefs->RegisterBooleanPref(prefs::kEnableTranslate, | 2155 prefs->RegisterBooleanPref(prefs::kEnableTranslate, |
2156 true, | 2156 true, |
2157 PrefService::SYNCABLE_PREF); | 2157 PrefService::SYNCABLE_PREF); |
2158 prefs->RegisterBooleanPref(prefs::kEnableBookmarkBar, | 2158 prefs->RegisterBooleanPref(prefs::kEnableBookmarkBar, |
2159 true, | 2159 true, |
2160 PrefService::UNSYNCABLE_PREF); | 2160 PrefService::UNSYNCABLE_PREF); |
2161 prefs->RegisterBooleanPref(prefs::kRemotingHasSetupCompleted, | |
2162 false, | |
2163 PrefService::UNSYNCABLE_PREF); | |
2164 prefs->RegisterBooleanPref(prefs::kChromotingEnabled, | |
2165 false, | |
2166 PrefService::UNSYNCABLE_PREF); | |
2167 prefs->RegisterBooleanPref(prefs::kChromotingHostEnabled, | |
2168 false, | |
2169 PrefService::UNSYNCABLE_PREF); | |
2170 prefs->RegisterBooleanPref(prefs::kChromotingHostFirewallTraversal, | |
2171 false, | |
2172 PrefService::UNSYNCABLE_PREF); | |
2173 prefs->RegisterStringPref(prefs::kCloudPrintEmail, | 2161 prefs->RegisterStringPref(prefs::kCloudPrintEmail, |
2174 std::string(), | 2162 std::string(), |
2175 PrefService::UNSYNCABLE_PREF); | 2163 PrefService::UNSYNCABLE_PREF); |
2176 prefs->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, | 2164 prefs->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, |
2177 true, | 2165 true, |
2178 PrefService::UNSYNCABLE_PREF); | 2166 PrefService::UNSYNCABLE_PREF); |
2179 prefs->RegisterBooleanPref(prefs::kDevToolsDisabled, | 2167 prefs->RegisterBooleanPref(prefs::kDevToolsDisabled, |
2180 false, | 2168 false, |
2181 PrefService::UNSYNCABLE_PREF); | 2169 PrefService::UNSYNCABLE_PREF); |
2182 prefs->RegisterBooleanPref(prefs::kIncognitoEnabled, | 2170 prefs->RegisterBooleanPref(prefs::kIncognitoEnabled, |
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4584 TabContents* current_tab = GetSelectedTabContents(); | 4572 TabContents* current_tab = GetSelectedTabContents(); |
4585 if (current_tab) { | 4573 if (current_tab) { |
4586 content_restrictions = current_tab->content_restrictions(); | 4574 content_restrictions = current_tab->content_restrictions(); |
4587 NavigationEntry* active_entry = current_tab->controller().GetActiveEntry(); | 4575 NavigationEntry* active_entry = current_tab->controller().GetActiveEntry(); |
4588 // See comment in UpdateCommandsForTabState about why we call url(). | 4576 // See comment in UpdateCommandsForTabState about why we call url(). |
4589 if (!SavePackage::IsSavableURL(active_entry ? active_entry->url() : GURL())) | 4577 if (!SavePackage::IsSavableURL(active_entry ? active_entry->url() : GURL())) |
4590 content_restrictions |= CONTENT_RESTRICTION_SAVE; | 4578 content_restrictions |= CONTENT_RESTRICTION_SAVE; |
4591 } | 4579 } |
4592 return content_restrictions; | 4580 return content_restrictions; |
4593 } | 4581 } |
OLD | NEW |