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

Unified Diff: chrome/browser/apps/ephemeral_app_throttle.cc

Issue 481433005: Extensions: Move id_util functions to crx_file component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/apps/ephemeral_app_throttle.cc
diff --git a/chrome/browser/apps/ephemeral_app_throttle.cc b/chrome/browser/apps/ephemeral_app_throttle.cc
index d4b04070ae1e34379846ebd7456c1984d48a4b9e..504e1b09d9e47299ffa279d8961d7cd4ccdea2e2 100644
--- a/chrome/browser/apps/ephemeral_app_throttle.cc
+++ b/chrome/browser/apps/ephemeral_app_throttle.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/profiles/profile_io_data.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_constants.h"
+#include "components/crx_file/id_util.h"
#include "components/navigation_interception/intercept_navigation_resource_throttle.h"
#include "components/navigation_interception/navigation_params.h"
#include "content/public/browser/browser_thread.h"
@@ -91,7 +92,7 @@ EphemeralAppThrottle::MaybeCreateThrottleForLaunch(
return NULL;
std::string app_id(request->url().ExtractFileName());
- if (!Extension::IdIsValid(app_id))
+ if (!crx_file::id_util::IdIsValid(app_id))
return NULL;
return new navigation_interception::InterceptNavigationResourceThrottle(

Powered by Google App Engine
This is Rietveld 408576698