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

Unified Diff: chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc

Issue 515563003: Remove dependency of chrome in WebRequestPermissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated. Created 6 years, 3 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/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc
index 68e19318de08bf33bcb311dd6fa4588c548734cc..9812a3aa210cc930a5df6bb1146ae48259992902 100644
--- a/chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc
@@ -12,6 +12,7 @@
#include "components/pref_registry/pref_registry_syncable.h"
#include "content/public/browser/web_ui.h"
#include "extensions/browser/extension_registry.h"
+#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_set.h"
#include "net/base/escape.h"
@@ -46,7 +47,7 @@ void CoreAppLauncherHandler::RecordAppListSearchLaunch(
const extensions::Extension* extension) {
extension_misc::AppLaunchBucket bucket =
extension_misc::APP_LAUNCH_APP_LIST_SEARCH;
- if (extension->id() == extension_misc::kWebStoreAppId)
+ if (extension->id() == extensions::kWebStoreAppId)
bucket = extension_misc::APP_LAUNCH_APP_LIST_SEARCH_WEBSTORE;
else if (extension->id() == extension_misc::kChromeAppId)
bucket = extension_misc::APP_LAUNCH_APP_LIST_SEARCH_CHROME;
@@ -58,7 +59,7 @@ void CoreAppLauncherHandler::RecordAppListMainLaunch(
const extensions::Extension* extension) {
extension_misc::AppLaunchBucket bucket =
extension_misc::APP_LAUNCH_APP_LIST_MAIN;
- if (extension->id() == extension_misc::kWebStoreAppId)
+ if (extension->id() == extensions::kWebStoreAppId)
bucket = extension_misc::APP_LAUNCH_APP_LIST_MAIN_WEBSTORE;
else if (extension->id() == extension_misc::kChromeAppId)
bucket = extension_misc::APP_LAUNCH_APP_LIST_MAIN_CHROME;
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698