OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/settings/settings_test_util.h" | 5 #include "chrome/browser/extensions/settings/settings_test_util.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
9 #include "chrome/browser/extensions/settings/settings_frontend.h" | 9 #include "chrome/browser/extensions/settings/settings_frontend.h" |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 for (std::set<std::string>::const_iterator it = permissions_set.begin(); | 67 for (std::set<std::string>::const_iterator it = permissions_set.begin(); |
68 it != permissions_set.end(); ++it) { | 68 it != permissions_set.end(); ++it) { |
69 permissions->Append(Value::CreateStringValue(*it)); | 69 permissions->Append(Value::CreateStringValue(*it)); |
70 } | 70 } |
71 manifest.Set("permissions", permissions.release()); | 71 manifest.Set("permissions", permissions.release()); |
72 | 72 |
73 switch (type) { | 73 switch (type) { |
74 case Extension::TYPE_EXTENSION: | 74 case Extension::TYPE_EXTENSION: |
75 break; | 75 break; |
76 | 76 |
77 case Extension::TYPE_PACKAGED_APP: { | 77 case Extension::TYPE_LEGACY_PACKAGED_APP: { |
78 DictionaryValue* app = new DictionaryValue(); | 78 DictionaryValue* app = new DictionaryValue(); |
79 DictionaryValue* app_launch = new DictionaryValue(); | 79 DictionaryValue* app_launch = new DictionaryValue(); |
80 app_launch->SetString("local_path", "fake.html"); | 80 app_launch->SetString("local_path", "fake.html"); |
81 app->Set("launch", app_launch); | 81 app->Set("launch", app_launch); |
82 manifest.Set("app", app); | 82 manifest.Set("app", app); |
83 break; | 83 break; |
84 } | 84 } |
85 | 85 |
86 default: | 86 default: |
87 NOTREACHED(); | 87 NOTREACHED(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 ValueStore* ScopedSettingsStorageFactory::Create( | 146 ValueStore* ScopedSettingsStorageFactory::Create( |
147 const FilePath& base_path, const std::string& extension_id) { | 147 const FilePath& base_path, const std::string& extension_id) { |
148 DCHECK(delegate_.get()); | 148 DCHECK(delegate_.get()); |
149 return delegate_->Create(base_path, extension_id); | 149 return delegate_->Create(base_path, extension_id); |
150 } | 150 } |
151 | 151 |
152 } // namespace settings_test_util | 152 } // namespace settings_test_util |
153 | 153 |
154 } // namespace extensions | 154 } // namespace extensions |
OLD | NEW |