| OLD | NEW |
| 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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 PrefService::SYNCABLE_PREF); | 2120 PrefService::SYNCABLE_PREF); |
| 2121 prefs->RegisterBooleanPref(prefs::kDeleteFormData, | 2121 prefs->RegisterBooleanPref(prefs::kDeleteFormData, |
| 2122 false, | 2122 false, |
| 2123 PrefService::SYNCABLE_PREF); | 2123 PrefService::SYNCABLE_PREF); |
| 2124 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, | 2124 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, |
| 2125 0, | 2125 0, |
| 2126 PrefService::SYNCABLE_PREF); | 2126 PrefService::SYNCABLE_PREF); |
| 2127 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, | 2127 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, |
| 2128 true, | 2128 true, |
| 2129 PrefService::UNSYNCABLE_PREF); | 2129 PrefService::UNSYNCABLE_PREF); |
| 2130 prefs->RegisterBooleanPref(prefs::kDefaultBrowserFlowDialog, |
| 2131 true, |
| 2132 PrefService::UNSYNCABLE_PREF); |
| 2130 prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint, | 2133 prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint, |
| 2131 true, | 2134 true, |
| 2132 PrefService::UNSYNCABLE_PREF); | 2135 PrefService::UNSYNCABLE_PREF); |
| 2133 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, | 2136 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, |
| 2134 true, | 2137 true, |
| 2135 PrefService::UNSYNCABLE_PREF); | 2138 PrefService::UNSYNCABLE_PREF); |
| 2136 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, | 2139 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, |
| 2137 true, | 2140 true, |
| 2138 PrefService::UNSYNCABLE_PREF); | 2141 PrefService::UNSYNCABLE_PREF); |
| 2139 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, | 2142 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, |
| (...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5173 if (contents && !allow_js_access) { | 5176 if (contents && !allow_js_access) { |
| 5174 contents->web_contents()->GetController().LoadURL( | 5177 contents->web_contents()->GetController().LoadURL( |
| 5175 target_url, | 5178 target_url, |
| 5176 content::Referrer(), | 5179 content::Referrer(), |
| 5177 content::PAGE_TRANSITION_LINK, | 5180 content::PAGE_TRANSITION_LINK, |
| 5178 std::string()); // No extra headers. | 5181 std::string()); // No extra headers. |
| 5179 } | 5182 } |
| 5180 | 5183 |
| 5181 return contents != NULL; | 5184 return contents != NULL; |
| 5182 } | 5185 } |
| OLD | NEW |