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

Unified Diff: services/ui/public/cpp/lib/context_provider.cc

Issue 2187103002: services/ui: Remove unused connector argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 5 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 | « services/ui/public/cpp/lib/bitmap_uploader.cc ('k') | services/ui/public/cpp/lib/gles2_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/lib/context_provider.cc
diff --git a/services/ui/public/cpp/lib/context_provider.cc b/services/ui/public/cpp/lib/context_provider.cc
index 30c4c8647878d90eca0b0a5f03b0b7b37bf9c352..bed839e227e6f76497e15bf6ca8a99bc964dcca3 100644
--- a/services/ui/public/cpp/lib/context_provider.cc
+++ b/services/ui/public/cpp/lib/context_provider.cc
@@ -7,21 +7,14 @@
#include <stdint.h>
#include "base/logging.h"
-#include "services/shell/public/cpp/connector.h"
#include "services/ui/public/cpp/gles2_context.h"
namespace ui {
-ContextProvider::ContextProvider(shell::Connector* connector)
- : connector_(connector->Clone()) {}
+ContextProvider::ContextProvider() {}
bool ContextProvider::BindToCurrentThread() {
- if (connector_) {
- context_ = GLES2Context::CreateOffscreenContext(std::vector<int32_t>(),
- connector_.get());
- // We don't need the connector anymore, so release it.
- connector_.reset();
- }
+ context_ = GLES2Context::CreateOffscreenContext(std::vector<int32_t>());
return !!context_;
}
« no previous file with comments | « services/ui/public/cpp/lib/bitmap_uploader.cc ('k') | services/ui/public/cpp/lib/gles2_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698