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

Side by Side Diff: chrome/browser/protector/settings_change_global_error.cc

Issue 10690151: Move implementation of BrowserList onto an inner, instantiatable class, BrowserListImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/protector/settings_change_global_error.h" 5 #include "chrome/browser/protector/settings_change_global_error.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "chrome/browser/platform_util.h" 14 #include "chrome/browser/platform_util.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/protector/base_setting_change.h" 16 #include "chrome/browser/protector/base_setting_change.h"
17 #include "chrome/browser/protector/settings_change_global_error_delegate.h" 17 #include "chrome/browser/protector/settings_change_global_error_delegate.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/browser/ui/browser_finder.h" 19 #include "chrome/browser/ui/browser_finder.h"
20 #include "chrome/browser/ui/browser_list.h"
20 #include "chrome/browser/ui/browser_window.h" 21 #include "chrome/browser/ui/browser_window.h"
21 #include "chrome/browser/ui/global_error/global_error_service.h" 22 #include "chrome/browser/ui/global_error/global_error_service.h"
22 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 23 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
23 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
24 25
25 using content::BrowserThread; 26 using content::BrowserThread;
26 27
27 namespace protector { 28 namespace protector {
28 29
29 namespace { 30 namespace {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 weak_factory_.InvalidateWeakPtrs(); 228 weak_factory_.InvalidateWeakPtrs();
228 ShowBubbleView(browser); 229 ShowBubbleView(browser);
229 } 230 }
230 231
231 void SettingsChangeGlobalError::OnInactiveTimeout() { 232 void SettingsChangeGlobalError::OnInactiveTimeout() {
232 delegate_->OnDecisionTimeout(this); 233 delegate_->OnDecisionTimeout(this);
233 RemoveFromProfile(); 234 RemoveFromProfile();
234 } 235 }
235 236
236 } // namespace protector 237 } // namespace protector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698