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

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

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/in_process_webkit/webkit_context.h" 5 #include "chrome/browser/in_process_webkit/webkit_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_thread.h" 8 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/chrome_switches.h"
11 10
12 WebKitContext::WebKitContext(Profile* profile, bool clear_local_state_on_exit) 11 WebKitContext::WebKitContext(Profile* profile, bool clear_local_state_on_exit)
13 : data_path_(profile->IsOffTheRecord() ? FilePath() : profile->GetPath()), 12 : data_path_(profile->IsOffTheRecord() ? FilePath() : profile->GetPath()),
14 is_incognito_(profile->IsOffTheRecord()), 13 is_incognito_(profile->IsOffTheRecord()),
15 clear_local_state_on_exit_(clear_local_state_on_exit), 14 clear_local_state_on_exit_(clear_local_state_on_exit),
16 ALLOW_THIS_IN_INITIALIZER_LIST( 15 ALLOW_THIS_IN_INITIALIZER_LIST(
17 dom_storage_context_(new DOMStorageContext(this))), 16 dom_storage_context_(new DOMStorageContext(this))),
18 ALLOW_THIS_IN_INITIALIZER_LIST( 17 ALLOW_THIS_IN_INITIALIZER_LIST(
19 indexed_db_context_(new IndexedDBContext(this))) { 18 indexed_db_context_(new IndexedDBContext(this))) {
20 } 19 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 BrowserThread::PostTask( 75 BrowserThread::PostTask(
77 BrowserThread::WEBKIT, FROM_HERE, 76 BrowserThread::WEBKIT, FROM_HERE,
78 NewRunnableMethod(this, &WebKitContext::DeleteSessionStorageNamespace, 77 NewRunnableMethod(this, &WebKitContext::DeleteSessionStorageNamespace,
79 session_storage_namespace_id)); 78 session_storage_namespace_id));
80 return; 79 return;
81 } 80 }
82 81
83 dom_storage_context_->DeleteSessionStorageNamespace( 82 dom_storage_context_->DeleteSessionStorageNamespace(
84 session_storage_namespace_id); 83 session_storage_namespace_id);
85 } 84 }
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/indexed_db_browsertest.cc ('k') | chrome/browser/nacl_host/nacl_broker_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698