Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/extensions/settings/settings_test_util.cc

Issue 10909239: Rename PACKAGED_APP references to LEGACY_PACKAGED_APP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698