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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 2502413005: Use aura::WindowProperty for title and name strings. (Closed)
Patch Set: Update comment Created 4 years, 1 month 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 | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/widget/window_reorderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 24288c8fe5d137072d4abc5acf72f9af81670f41..cb76f43f8739e548010cadb0ec56becbe6cde702 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -372,7 +372,7 @@ void NativeWidgetAura::GetWindowPlacement(
bool NativeWidgetAura::SetWindowTitle(const base::string16& title) {
if (!window_)
return false;
- if (window_->title() == title)
+ if (window_->GetTitle() == title)
return false;
window_->SetTitle(title);
return true;
@@ -774,7 +774,7 @@ void NativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) {
}
std::string NativeWidgetAura::GetName() const {
- return window_ ? window_->name() : std::string();
+ return window_ ? window_->GetName() : std::string();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/widget/window_reorderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698