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

Side by Side Diff: chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/common/extensions/manifest_handlers/settings_overrides_handler. h" 5 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/common/extensions/permissions/permissions_data.h"
10 #include "chrome/common/extensions/permissions/settings_override_permission.h" 9 #include "chrome/common/extensions/permissions/settings_override_permission.h"
11 #include "extensions/common/error_utils.h" 10 #include "extensions/common/error_utils.h"
12 #include "extensions/common/manifest_constants.h" 11 #include "extensions/common/manifest_constants.h"
13 #include "extensions/common/permissions/api_permission_set.h" 12 #include "extensions/common/permissions/api_permission_set.h"
13 #include "extensions/common/permissions/permissions_data.h"
14 #include "extensions/common/permissions/permissions_info.h" 14 #include "extensions/common/permissions/permissions_info.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 using extensions::api::manifest_types::ChromeSettingsOverrides; 17 using extensions::api::manifest_types::ChromeSettingsOverrides;
18 18
19 namespace extensions { 19 namespace extensions {
20 namespace { 20 namespace {
21 21
22 const char* kWwwPrefix = "www."; 22 const char* kWwwPrefix = "www.";
23 23
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 extension->SetManifestData(manifest_keys::kSettingsOverride, 126 extension->SetManifestData(manifest_keys::kSettingsOverride,
127 info.release()); 127 info.release());
128 return true; 128 return true;
129 } 129 }
130 130
131 const std::vector<std::string> SettingsOverridesHandler::Keys() const { 131 const std::vector<std::string> SettingsOverridesHandler::Keys() const {
132 return SingleKey(manifest_keys::kSettingsOverride); 132 return SingleKey(manifest_keys::kSettingsOverride);
133 } 133 }
134 134
135 } // namespace extensions 135 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698