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

Unified Diff: chrome/browser/extensions/api/management/chrome_management_api_delegate.cc

Issue 1140053003: Refactoring: Moving the SafeJsonParser to its own component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Catching up with WebstoreInstallHelper changes Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/DEPS ('k') | chrome/browser/extensions/webstore_data_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/management/chrome_management_api_delegate.cc
diff --git a/chrome/browser/extensions/api/management/chrome_management_api_delegate.cc b/chrome/browser/extensions/api/management/chrome_management_api_delegate.cc
index 546e27aafc3aae04d7577722d9f2eb17c156cc28..22dcd5e9b418f86ead848cc7393f91e89e059c19 100644
--- a/chrome/browser/extensions/api/management/chrome_management_api_delegate.cc
+++ b/chrome/browser/extensions/api/management/chrome_management_api_delegate.cc
@@ -12,7 +12,6 @@
#include "chrome/browser/extensions/launch_util.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/safe_json_parser.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
@@ -24,6 +23,7 @@
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "chrome/common/web_application_info.h"
#include "components/favicon/core/favicon_service.h"
+#include "components/safe_json_parser/safe_json_parser.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
@@ -184,16 +184,17 @@ void ChromeManagementAPIDelegate::
GetPermissionWarningsByManifestFunctionDelegate(
extensions::ManagementGetPermissionWarningsByManifestFunction* function,
const std::string& manifest_str) const {
- scoped_refptr<SafeJsonParser> parser(new SafeJsonParser(
- manifest_str,
- base::Bind(
- &extensions::ManagementGetPermissionWarningsByManifestFunction::
- OnParseSuccess,
- function),
- base::Bind(
- &extensions::ManagementGetPermissionWarningsByManifestFunction::
- OnParseFailure,
- function)));
+ scoped_refptr<safe_json_parser::SafeJsonParser> parser(
+ new safe_json_parser::SafeJsonParser(
+ manifest_str,
+ base::Bind(
+ &extensions::ManagementGetPermissionWarningsByManifestFunction::
+ OnParseSuccess,
+ function),
+ base::Bind(
+ &extensions::ManagementGetPermissionWarningsByManifestFunction::
+ OnParseFailure,
+ function)));
parser->Start();
}
« no previous file with comments | « chrome/browser/extensions/DEPS ('k') | chrome/browser/extensions/webstore_data_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698