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

Side by Side Diff: chrome/browser/browser.cc

Issue 7993: Remember the clear browsing data combo box selection.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/views/clear_browsing_data.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 prefs->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, true); 178 prefs->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, true);
179 prefs->RegisterIntegerPref(prefs::kCookieBehavior, 179 prefs->RegisterIntegerPref(prefs::kCookieBehavior,
180 net::CookiePolicy::ALLOW_ALL_COOKIES); 180 net::CookiePolicy::ALLOW_ALL_COOKIES);
181 prefs->RegisterBooleanPref(prefs::kShowHomeButton, false); 181 prefs->RegisterBooleanPref(prefs::kShowHomeButton, false);
182 prefs->RegisterStringPref(prefs::kRecentlySelectedEncoding, L""); 182 prefs->RegisterStringPref(prefs::kRecentlySelectedEncoding, L"");
183 prefs->RegisterBooleanPref(prefs::kDeleteBrowsingHistory, true); 183 prefs->RegisterBooleanPref(prefs::kDeleteBrowsingHistory, true);
184 prefs->RegisterBooleanPref(prefs::kDeleteDownloadHistory, true); 184 prefs->RegisterBooleanPref(prefs::kDeleteDownloadHistory, true);
185 prefs->RegisterBooleanPref(prefs::kDeleteCache, true); 185 prefs->RegisterBooleanPref(prefs::kDeleteCache, true);
186 prefs->RegisterBooleanPref(prefs::kDeleteCookies, true); 186 prefs->RegisterBooleanPref(prefs::kDeleteCookies, true);
187 prefs->RegisterBooleanPref(prefs::kDeletePasswords, false); 187 prefs->RegisterBooleanPref(prefs::kDeletePasswords, false);
188 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 0);
188 } 189 }
189 190
190 Browser::Browser(const gfx::Rect& initial_bounds, 191 Browser::Browser(const gfx::Rect& initial_bounds,
191 int show_command, 192 int show_command,
192 Profile* profile, 193 Profile* profile,
193 BrowserType::Type type, 194 BrowserType::Type type,
194 const std::wstring& app_name) 195 const std::wstring& app_name)
195 : profile_(profile), 196 : profile_(profile),
196 window_(NULL), 197 window_(NULL),
197 initial_show_command_(show_command), 198 initial_show_command_(show_command),
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 void Browser::FormatTitleForDisplay(std::wstring* title) { 1862 void Browser::FormatTitleForDisplay(std::wstring* title) {
1862 size_t current_index = 0; 1863 size_t current_index = 0;
1863 size_t match_index; 1864 size_t match_index;
1864 while ((match_index = title->find(L'\n', current_index)) != 1865 while ((match_index = title->find(L'\n', current_index)) !=
1865 std::wstring::npos) { 1866 std::wstring::npos) {
1866 title->replace(match_index, 1, L""); 1867 title->replace(match_index, 1, L"");
1867 current_index = match_index; 1868 current_index = match_index;
1868 } 1869 }
1869 } 1870 }
1870 1871
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/clear_browsing_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698