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

Unified Diff: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc

Issue 583583008: Rename AppsClient -> AppWindowClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac & test 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
Index: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
diff --git a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
index 4afaa34dd0c0c61bc275f6d42b19a186679bbec9..29cf618a1f77fc114cc4145e36674b4a86fe1ef6 100644
--- a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
+++ b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
@@ -6,8 +6,8 @@
#include "base/command_line.h"
#include "extensions/browser/app_window/app_window.h"
+#include "extensions/browser/app_window/app_window_client.h"
#include "extensions/browser/app_window/app_window_registry.h"
-#include "extensions/browser/app_window/apps_client.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/browser/app_window/size_constraints.h"
#include "extensions/common/api/app_current_window_internal.h"
@@ -294,7 +294,7 @@ bool AppCurrentWindowInternalSetSizeConstraintsFunction::RunWithWindow(
}
bool AppCurrentWindowInternalSetIconFunction::RunWithWindow(AppWindow* window) {
- if (AppsClient::Get()->IsCurrentChannelOlderThanDev() &&
+ if (AppWindowClient::Get()->IsCurrentChannelOlderThanDev() &&
extension()->location() != extensions::Manifest::COMPONENT) {
error_ = kDevChannelOnly;
return false;
@@ -314,7 +314,7 @@ bool AppCurrentWindowInternalSetIconFunction::RunWithWindow(AppWindow* window) {
bool AppCurrentWindowInternalSetBadgeIconFunction::RunWithWindow(
AppWindow* window) {
- if (AppsClient::Get()->IsCurrentChannelOlderThanDev()) {
+ if (AppWindowClient::Get()->IsCurrentChannelOlderThanDev()) {
error_ = kDevChannelOnly;
return false;
}
@@ -333,7 +333,7 @@ bool AppCurrentWindowInternalSetBadgeIconFunction::RunWithWindow(
bool AppCurrentWindowInternalClearBadgeFunction::RunWithWindow(
AppWindow* window) {
- if (AppsClient::Get()->IsCurrentChannelOlderThanDev()) {
+ if (AppWindowClient::Get()->IsCurrentChannelOlderThanDev()) {
error_ = kDevChannelOnly;
return false;
}
@@ -400,7 +400,7 @@ bool AppCurrentWindowInternalSetAlwaysOnTopFunction::RunWithWindow(
bool AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction::RunWithWindow(
AppWindow* window) {
- if (AppsClient::Get()->IsCurrentChannelOlderThanDev()) {
+ if (AppWindowClient::Get()->IsCurrentChannelOlderThanDev()) {
error_ = kDevChannelOnly;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698