| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_theme_pack.h" | 5 #include "chrome/browser/browser_theme_pack.h" |
| 6 | 6 |
| 7 #include "app/theme_provider.h" | |
| 8 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 9 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 11 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 12 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
| 13 #include "base/values.h" | 12 #include "base/values.h" |
| 14 #include "chrome/browser/browser_theme_provider.h" | 13 #include "chrome/browser/browser_theme_provider.h" |
| 15 #include "chrome/browser/chrome_thread.h" | 14 #include "chrome/browser/chrome_thread.h" |
| 16 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/json_value_serializer.h" | 16 #include "chrome/common/json_value_serializer.h" |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 419 |
| 421 // Part 2: Try to read back the data pack that we just wrote to disk. | 420 // Part 2: Try to read back the data pack that we just wrote to disk. |
| 422 { | 421 { |
| 423 scoped_refptr<BrowserThemePack> pack = | 422 scoped_refptr<BrowserThemePack> pack = |
| 424 BrowserThemePack::BuildFromDataPack( | 423 BrowserThemePack::BuildFromDataPack( |
| 425 file, "mblmlcbknbnfebdfjnolmcapmdofhmme"); | 424 file, "mblmlcbknbnfebdfjnolmcapmdofhmme"); |
| 426 ASSERT_TRUE(pack.get()); | 425 ASSERT_TRUE(pack.get()); |
| 427 VerifyStarGazing(pack.get()); | 426 VerifyStarGazing(pack.get()); |
| 428 } | 427 } |
| 429 } | 428 } |
| OLD | NEW |