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

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

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 | 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/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "extensions/common/error_utils.h" 12 #include "extensions/common/error_utils.h"
13 #include "extensions/common/extension_set.h" 13 #include "extensions/common/extension_set.h"
14 #include "extensions/common/feature_switch.h" 14 #include "extensions/common/feature_switch.h"
15 #include "extensions/common/manifest_constants.h" 15 #include "extensions/common/manifest_constants.h"
16 #include "extensions/common/manifest_handlers/permissions_parser.h" 16 #include "extensions/common/manifest_handlers/permissions_parser.h"
17 #include "extensions/common/permissions/api_permission_set.h" 17 #include "extensions/common/permissions/api_permission_set.h"
18 #include "extensions/common/permissions/manifest_permission.h" 18 #include "extensions/common/permissions/manifest_permission.h"
19 #include "extensions/common/permissions/permissions_info.h" 19 #include "extensions/common/permissions/permissions_info.h"
20 #include "extensions/common/permissions/settings_override_permission.h" 20 #include "extensions/common/permissions/settings_override_permission.h"
21 #include "grit/generated_resources.h"
22 #include "ipc/ipc_message.h" 21 #include "ipc/ipc_message.h"
23 #include "ipc/ipc_message_utils.h" 22 #include "ipc/ipc_message_utils.h"
24 #include "ui/base/l10n/l10n_util.h"
25 #include "url/gurl.h" 23 #include "url/gurl.h"
26 24
27 using extensions::api::manifest_types::ChromeSettingsOverrides; 25 using extensions::api::manifest_types::ChromeSettingsOverrides;
28 26
29 namespace extensions { 27 namespace extensions {
30 namespace { 28 namespace {
31 29
32 const char* kWwwPrefix = "www."; 30 const char* kWwwPrefix = "www.";
33 31
34 scoped_ptr<GURL> CreateManifestURL(const std::string& url) { 32 scoped_ptr<GURL> CreateManifestURL(const std::string& url) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 extension->SetManifestData(manifest_keys::kSettingsOverride, 176 extension->SetManifestData(manifest_keys::kSettingsOverride,
179 info.release()); 177 info.release());
180 return true; 178 return true;
181 } 179 }
182 180
183 const std::vector<std::string> SettingsOverridesHandler::Keys() const { 181 const std::vector<std::string> SettingsOverridesHandler::Keys() const {
184 return SingleKey(manifest_keys::kSettingsOverride); 182 return SingleKey(manifest_keys::kSettingsOverride);
185 } 183 }
186 184
187 } // namespace extensions 185 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/chrome_version_info.cc ('k') | chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698