diff options
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 4 | ||||
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 4 | ||||
-rw-r--r-- | chrome/browser/debugger/devtools_manager.cc | 2 | ||||
-rw-r--r-- | chrome/browser/gtk/task_manager_gtk.cc | 6 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host.cc | 2 | ||||
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_database_bloom.cc | 2 | ||||
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 1cd02e7..57f8ee8 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -84,7 +84,7 @@ Browser* ActivateBrowser(Profile* profile) { // to the new |Browser|. Browser* CreateBrowser(Profile* profile) { { - AutoReset auto_reset_in_run(&g_is_opening_new_window, true); + AutoReset<bool> auto_reset_in_run(&g_is_opening_new_window, true); Browser::OpenEmptyWindow(profile); } @@ -804,7 +804,7 @@ void RecordLastRunAppBundlePath() { // Otherwise open a new window. { - AutoReset auto_reset_in_run(&g_is_opening_new_window, true); + AutoReset<bool> auto_reset_in_run(&g_is_opening_new_window, true); Browser::OpenEmptyWindow([self defaultProfile]); } diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc index 6a17f80..38bc75e 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc @@ -1693,7 +1693,7 @@ LRESULT AutocompleteEditViewWin::OnSetText(const wchar_t* text) { // We wouldn't need to do this update anyway, because either we're in the // middle of updating the omnibox already or the caller of SetWindowText() // is going to update the omnibox next. - AutoReset auto_reset_ignore_ime_messages(&ignore_ime_messages_, true); + AutoReset<bool> auto_reset_ignore_ime_messages(&ignore_ime_messages_, true); return DefWindowProc(WM_SETTEXT, 0, reinterpret_cast<LPARAM>(text)); } @@ -2336,7 +2336,7 @@ void AutocompleteEditViewWin::StartDragIfNecessary(const CPoint& point) { scoped_refptr<BaseDragSource> drag_source(new BaseDragSource); DWORD dropped_mode; - AutoReset auto_reset_in_drag(&in_drag_, true); + AutoReset<bool> auto_reset_in_drag(&in_drag_, true); if (DoDragDrop(OSExchangeDataProviderWin::GetIDataObject(data), drag_source, supported_modes, &dropped_mode) == DRAGDROP_S_DROP) { if ((dropped_mode == DROPEFFECT_MOVE) && (start_text == GetText())) { diff --git a/chrome/browser/debugger/devtools_manager.cc b/chrome/browser/debugger/devtools_manager.cc index 57db6c3..ff7f267 100644 --- a/chrome/browser/debugger/devtools_manager.cc +++ b/chrome/browser/debugger/devtools_manager.cc @@ -363,7 +363,7 @@ void DevToolsManager::ToggleDevToolsWindow(RenderViewHost* inspected_rvh, // If window is docked and visible, we hide it on toggle. If window is // undocked, we show (activate) it. if (!window->is_docked() || do_open) { - AutoReset auto_reset_in_initial_show(&in_initial_show_, true); + AutoReset<bool> auto_reset_in_initial_show(&in_initial_show_, true); window->Show(open_console); } else UnregisterDevToolsClientHostFor(inspected_rvh); diff --git a/chrome/browser/gtk/task_manager_gtk.cc b/chrome/browser/gtk/task_manager_gtk.cc index aa8577b..93ed4ca 100644 --- a/chrome/browser/gtk/task_manager_gtk.cc +++ b/chrome/browser/gtk/task_manager_gtk.cc @@ -316,7 +316,7 @@ void TaskManagerGtk::OnItemsChanged(int start, int length) { } void TaskManagerGtk::OnItemsAdded(int start, int length) { - AutoReset autoreset(&ignore_selection_changed_, true); + AutoReset<bool> autoreset(&ignore_selection_changed_, true); GtkTreeIter iter; if (start == 0) { @@ -342,7 +342,7 @@ void TaskManagerGtk::OnItemsAdded(int start, int length) { void TaskManagerGtk::OnItemsRemoved(int start, int length) { { - AutoReset autoreset(&ignore_selection_changed_, true); + AutoReset<bool> autoreset(&ignore_selection_changed_, true); GtkTreeIter iter; gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(process_list_), &iter, @@ -848,7 +848,7 @@ void TaskManagerGtk::OnTreeViewRealize(GtkTreeView* treeview, void TaskManagerGtk::OnSelectionChanged(GtkTreeSelection* selection) { if (ignore_selection_changed_) return; - AutoReset autoreset(&ignore_selection_changed_, true); + AutoReset<bool> autoreset(&ignore_selection_changed_, true); // The set of groups that should be selected. std::set<std::pair<int, int> > ranges; diff --git a/chrome/browser/renderer_host/render_widget_host.cc b/chrome/browser/renderer_host/render_widget_host.cc index c55f043..673a237 100644 --- a/chrome/browser/renderer_host/render_widget_host.cc +++ b/chrome/browser/renderer_host/render_widget_host.cc @@ -312,7 +312,7 @@ BackingStore* RenderWidgetHost::GetBackingStore(bool force_create) { // We should never be called recursively; this can theoretically lead to // infinite recursion and almost certainly leads to lower performance. DCHECK(!in_get_backing_store_) << "GetBackingStore called recursively!"; - AutoReset auto_reset_in_get_backing_store(&in_get_backing_store_, true); + AutoReset<bool> auto_reset_in_get_backing_store(&in_get_backing_store_, true); // We might have a cached backing store that we can reuse! BackingStore* backing_store = diff --git a/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc b/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc index 8acda7c..802bbd2 100644 --- a/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc +++ b/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc @@ -63,7 +63,7 @@ bool SafeBrowsingDatabaseBloom::ResetDatabase() { if (performing_reset_) return false; // Don't recurse. - AutoReset auto_reset_performing_reset(&performing_reset_, true); + AutoReset<bool> auto_reset_performing_reset(&performing_reset_, true); // Delete files on disk. bool rv = Close(); diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 1599737..8e2fff5 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -1584,7 +1584,7 @@ void TabContents::DidNavigateMainFramePostCommit( // Close blocked popups. if (blocked_popups_) { - AutoReset auto_reset(&dont_notify_render_view_, true); + AutoReset<bool> auto_reset(&dont_notify_render_view_, true); blocked_popups_->Destroy(); blocked_popups_ = NULL; } |