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

Unified Diff: extensions/browser/app_window/app_window.cc

Issue 583583008: Rename AppsClient -> AppWindowClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a bit more naming 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/app_window/app_window.cc
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index 1cc9ae2855be2c102b37eb4a306149d3bdaa8c8d..6481dc7cb00580efdb6fafbdbcc65760eaac9e5e 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -23,9 +23,9 @@
#include "content/public/common/media_stream_request.h"
#include "extensions/browser/app_window/app_delegate.h"
#include "extensions/browser/app_window/app_web_contents_helper.h"
+#include "extensions/browser/app_window/app_window_client.h"
#include "extensions/browser/app_window/app_window_geometry_cache.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/browser/extension_registry.h"
@@ -272,9 +272,9 @@ void AppWindow::Init(const GURL& url,
requested_alpha_enabled_ = new_params.alpha_enabled;
- AppsClient* apps_client = AppsClient::Get();
+ AppWindowClient* app_window_client = AppWindowClient::Get();
native_app_window_.reset(
- apps_client->CreateNativeAppWindow(this, new_params));
+ app_window_client->CreateNativeAppWindow(this, new_params));
helper_.reset(new AppWebContentsHelper(
browser_context_, extension_id_, web_contents, app_delegate_.get()));
@@ -284,7 +284,7 @@ void AppWindow::Init(const GURL& url,
popup_manager_->RegisterWith(web_contents);
// Prevent the browser process from shutting down while this window exists.
- apps_client->IncrementKeepAliveCount();
+ app_window_client->IncrementKeepAliveCount();
UpdateExtensionAppIcon();
AppWindowRegistry::Get(browser_context_)->AddAppWindow(this);
@@ -335,7 +335,7 @@ AppWindow::~AppWindow() {
ExtensionRegistry::Get(browser_context_)->RemoveObserver(this);
// Remove shutdown prevention.
- AppsClient::Get()->DecrementKeepAliveCount();
+ AppWindowClient::Get()->DecrementKeepAliveCount();
}
void AppWindow::RequestMediaAccessPermission(
« no previous file with comments | « extensions/browser/api/app_window/app_window_api.cc ('k') | extensions/browser/app_window/app_window_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698