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

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

Issue 9235004: [Garbled Text][Infobar] Adding infobar to suggest turning on encoding detection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 11 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_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 ChromeNetworkDelegate::InitializeReferrersEnabled( 231 ChromeNetworkDelegate::InitializeReferrersEnabled(
232 io_data_->enable_referrers(), pref_service); 232 io_data_->enable_referrers(), pref_service);
233 io_data_->clear_local_state_on_exit()->Init( 233 io_data_->clear_local_state_on_exit()->Init(
234 prefs::kClearSiteDataOnExit, pref_service, NULL); 234 prefs::kClearSiteDataOnExit, pref_service, NULL);
235 io_data_->clear_local_state_on_exit()->MoveToThread(BrowserThread::IO); 235 io_data_->clear_local_state_on_exit()->MoveToThread(BrowserThread::IO);
236 #if defined(ENABLE_SAFE_BROWSING) 236 #if defined(ENABLE_SAFE_BROWSING)
237 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, 237 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled,
238 pref_service, NULL); 238 pref_service, NULL);
239 io_data_->safe_browsing_enabled()->MoveToThread(BrowserThread::IO); 239 io_data_->safe_browsing_enabled()->MoveToThread(BrowserThread::IO);
240 #endif 240 #endif
241 io_data_->garbled_text_fix_enabled()->Init(
242 prefs::kEnableAutoGarbledTextFix, pref_service, NULL);
243 io_data_->garbled_text_fix_enabled()->MoveToThread(BrowserThread::IO);
241 initialized_ = true; 244 initialized_ = true;
242 } 245 }
243 } 246 }
244 247
245 ProfileImplIOData::LazyParams::LazyParams() 248 ProfileImplIOData::LazyParams::LazyParams()
246 : cache_max_size(0), 249 : cache_max_size(0),
247 media_cache_max_size(0) {} 250 media_cache_max_size(0) {}
248 ProfileImplIOData::LazyParams::~LazyParams() {} 251 ProfileImplIOData::LazyParams::~LazyParams() {}
249 252
250 ProfileImplIOData::ProfileImplIOData() 253 ProfileImplIOData::ProfileImplIOData()
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 scoped_refptr<ChromeURLRequestContext> 512 scoped_refptr<ChromeURLRequestContext>
510 ProfileImplIOData::AcquireIsolatedAppRequestContext( 513 ProfileImplIOData::AcquireIsolatedAppRequestContext(
511 scoped_refptr<ChromeURLRequestContext> main_context, 514 scoped_refptr<ChromeURLRequestContext> main_context,
512 const std::string& app_id) const { 515 const std::string& app_id) const {
513 // We create per-app contexts on demand, unlike the others above. 516 // We create per-app contexts on demand, unlike the others above.
514 scoped_refptr<ChromeURLRequestContext> app_request_context = 517 scoped_refptr<ChromeURLRequestContext> app_request_context =
515 InitializeAppRequestContext(main_context, app_id); 518 InitializeAppRequestContext(main_context, app_id);
516 DCHECK(app_request_context); 519 DCHECK(app_request_context);
517 return app_request_context; 520 return app_request_context;
518 } 521 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698