OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/browser/shell_content_browser_client.h" | 5 #include "content/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.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/files/file.h" | 10 #include "base/files/file.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 | |
asargent_no_longer_on_chrome
2014/06/23 18:20:59
spurious newline?
Yoyo Zhou
2014/06/23 23:48:33
Done.
| |
13 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
14 #include "content/public/browser/resource_dispatcher_host.h" | 15 #include "content/public/browser/resource_dispatcher_host.h" |
15 #include "content/public/browser/storage_partition.h" | 16 #include "content/public/browser/storage_partition.h" |
16 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
17 #include "content/public/common/url_constants.h" | 18 #include "content/public/common/url_constants.h" |
18 #include "content/shell/browser/shell.h" | 19 #include "content/shell/browser/shell.h" |
19 #include "content/shell/browser/shell_browser_context.h" | 20 #include "content/shell/browser/shell_browser_context.h" |
20 #include "content/shell/browser/shell_browser_main_parts.h" | 21 #include "content/shell/browser/shell_browser_main_parts.h" |
21 #include "content/shell/browser/shell_devtools_delegate.h" | 22 #include "content/shell/browser/shell_devtools_delegate.h" |
22 #include "content/shell/browser/shell_message_filter.h" | 23 #include "content/shell/browser/shell_message_filter.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
364 ShellBrowserContext* | 365 ShellBrowserContext* |
365 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( | 366 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( |
366 BrowserContext* content_browser_context) { | 367 BrowserContext* content_browser_context) { |
367 if (content_browser_context == browser_context()) | 368 if (content_browser_context == browser_context()) |
368 return browser_context(); | 369 return browser_context(); |
369 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); | 370 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); |
370 return off_the_record_browser_context(); | 371 return off_the_record_browser_context(); |
371 } | 372 } |
372 | 373 |
373 } // namespace content | 374 } // namespace content |
OLD | NEW |