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

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 24734007: Encrypt all stored cookies on selected operating systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed (most) review comments by Erik Created 7 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
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 "android_webview/browser/aw_browser_context.h" 5 #include "android_webview/browser/aw_browser_context.h"
6 6
7 #include "android_webview/browser/aw_form_database_service.h" 7 #include "android_webview/browser/aw_form_database_service.h"
8 #include "android_webview/browser/aw_pref_store.h" 8 #include "android_webview/browser/aw_pref_store.h"
9 #include "android_webview/browser/aw_quota_manager_bridge.h" 9 #include "android_webview/browser/aw_quota_manager_bridge.h"
10 #include "android_webview/browser/jni_dependency_factory.h" 10 #include "android_webview/browser/jni_dependency_factory.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 background_task_runner->PostTask( 137 background_task_runner->PostTask(
138 FROM_HERE, 138 FROM_HERE,
139 base::Bind(ImportLegacyCookieStore, cookie_store_path)); 139 base::Bind(ImportLegacyCookieStore, cookie_store_path));
140 140
141 cookie_store_ = content::CreatePersistentCookieStore( 141 cookie_store_ = content::CreatePersistentCookieStore(
142 cookie_store_path, 142 cookie_store_path,
143 true, 143 true,
144 NULL, 144 NULL,
145 NULL, 145 NULL,
146 background_task_runner); 146 background_task_runner,
147 NULL);
147 148
148 cookie_store_->GetCookieMonster()->SetPersistSessionCookies(true); 149 cookie_store_->GetCookieMonster()->SetPersistSessionCookies(true);
149 url_request_context_getter_ = 150 url_request_context_getter_ =
150 new AwURLRequestContextGetter(GetPath(), cookie_store_.get()); 151 new AwURLRequestContextGetter(GetPath(), cookie_store_.get());
151 152
152 DidCreateCookieMonster(cookie_store_->GetCookieMonster()); 153 DidCreateCookieMonster(cookie_store_->GetCookieMonster());
153 154
154 visitedlink_master_.reset( 155 visitedlink_master_.reset(
155 new visitedlink::VisitedLinkMaster(this, this, false)); 156 new visitedlink::VisitedLinkMaster(this, this, false));
156 visitedlink_master_->Init(); 157 visitedlink_master_->Init();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 298
298 void AwBrowserContext::RebuildTable( 299 void AwBrowserContext::RebuildTable(
299 const scoped_refptr<URLEnumerator>& enumerator) { 300 const scoped_refptr<URLEnumerator>& enumerator) {
300 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 301 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
301 // can change in the lifetime of this WebView and may not yet be set here. 302 // can change in the lifetime of this WebView and may not yet be set here.
302 // Therefore this initialization path is not used. 303 // Therefore this initialization path is not used.
303 enumerator->OnComplete(true); 304 enumerator->OnComplete(true);
304 } 305 }
305 306
306 } // namespace android_webview 307 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | chrome/browser/profiles/profile_impl_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698