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

Unified Diff: chrome/browser/views/chrome_views_delegate.cc

Issue 115378: Move Always On Top setting out of Window/WindowDelegate and into task manager... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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: chrome/browser/views/chrome_views_delegate.cc
===================================================================
--- chrome/browser/views/chrome_views_delegate.cc (revision 16089)
+++ chrome/browser/views/chrome_views_delegate.cc (working copy)
@@ -19,8 +19,7 @@
void ChromeViewsDelegate::SaveWindowPlacement(const std::wstring& window_name,
const gfx::Rect& bounds,
- bool maximized,
- bool always_on_top) {
+ bool maximized) {
if (!g_browser_process->local_state())
return;
@@ -32,7 +31,6 @@
window_preferences->SetInteger(L"right", bounds.right());
window_preferences->SetInteger(L"bottom", bounds.bottom());
window_preferences->SetBoolean(L"maximized", maximized);
- window_preferences->SetBoolean(L"always_on_top", always_on_top);
}
bool ChromeViewsDelegate::GetSavedWindowBounds(const std::wstring& window_name,
@@ -65,18 +63,6 @@
maximized;
}
-bool ChromeViewsDelegate::GetSavedAlwaysOnTopState(
- const std::wstring& window_name,
- bool* always_on_top) const {
- if (!g_browser_process->local_state())
- return false;
-
- const DictionaryValue* dictionary =
- g_browser_process->local_state()->GetDictionary(window_name.c_str());
- return dictionary && dictionary->GetBoolean(L"always_on_top", always_on_top) &&
- always_on_top;
-}
-
#if defined(OS_WIN)
HICON ChromeViewsDelegate::GetDefaultWindowIcon() const {
return LoadIcon(GetModuleHandle(L"chrome.dll"),

Powered by Google App Engine
This is Rietveld 408576698