| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/external_pref_extension_loader.h" | 5 #include "chrome/browser/extensions/external_pref_extension_loader.h" |
| 6 | 6 |
| 7 #include "app/app_paths.h" | 7 #include "app/app_paths.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 FilePath fake_json_path = fake_base_path.AppendASCII("fake.json"); | 105 FilePath fake_json_path = fake_base_path.AppendASCII("fake.json"); |
| 106 testing_prefs_.reset(ExtractPrefs(fake_json_path, &serializer)); | 106 testing_prefs_.reset(ExtractPrefs(fake_json_path, &serializer)); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void ExternalTestingExtensionLoader::StartLoading() { | 109 void ExternalTestingExtensionLoader::StartLoading() { |
| 110 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 110 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 111 prefs_.reset(testing_prefs_->DeepCopy()); | 111 prefs_.reset(testing_prefs_->DeepCopy()); |
| 112 LoadFinished(); | 112 LoadFinished(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 ExternalTestingExtensionLoader::~ExternalTestingExtensionLoader() {} |
| 116 |
| 115 const FilePath ExternalTestingExtensionLoader::GetBaseCrxFilePath() { | 117 const FilePath ExternalTestingExtensionLoader::GetBaseCrxFilePath() { |
| 116 return fake_base_path_; | 118 return fake_base_path_; |
| 117 } | 119 } |
| OLD | NEW |