OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/test/perf/perf_ui_test_suite.h" | 5 #include "chrome/test/perf/perf_ui_test_suite.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
16 #include "chrome/browser/themes/browser_theme_pack.h" | 16 #include "chrome/browser/themes/browser_theme_pack.h" |
17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
19 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
20 #include "chrome/test/perf/generate_profile.h" | 20 #include "chrome/test/perf/generate_profile.h" |
21 #include "content/public/test/test_browser_thread.h" | 21 #include "content/public/test/test_browser_thread.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 content::TestBrowserThread file_thread_(BrowserThread::FILE, | 162 content::TestBrowserThread file_thread_(BrowserThread::FILE, |
163 &message_loop_); | 163 &message_loop_); |
164 | 164 |
165 scoped_refptr<BrowserThemePack> theme( | 165 scoped_refptr<BrowserThemePack> theme( |
166 BrowserThemePack::BuildFromExtension(extension.get())); | 166 BrowserThemePack::BuildFromExtension(extension.get())); |
167 if (!theme.get()) | 167 if (!theme.get()) |
168 LOG(FATAL) << "Failed to load theme from extension"; | 168 LOG(FATAL) << "Failed to load theme from extension"; |
169 | 169 |
170 theme->WriteToDisk(extension_base.AppendASCII("Cached Theme.pak")); | 170 theme->WriteToDisk(extension_base.AppendASCII("Cached Theme.pak")); |
171 } | 171 } |
OLD | NEW |