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

Side by Side Diff: chrome/browser/managed_mode.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/managed_mode.h" 5 #include "chrome/browser/managed_mode.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/extension_system.h" 9 #include "chrome/browser/extensions/extension_system.h"
10 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" 12 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h"
13 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h" 13 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/browser_list.h"
15 #include "chrome/browser/ui/browser_window.h" 16 #include "chrome/browser/ui/browser_window.h"
16 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
17 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
19 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
20 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
21 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
22 23
23 // static 24 // static
24 ManagedMode* ManagedMode::GetInstance() { 25 ManagedMode* ManagedMode::GetInstance() {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 g_browser_process->local_state()->SetBoolean(prefs::kInManagedMode, false); 260 g_browser_process->local_state()->SetBoolean(prefs::kInManagedMode, false);
260 } 261 }
261 managed_profile_ = newly_managed_profile; 262 managed_profile_ = newly_managed_profile;
262 263
263 // This causes the avatar and the profile menu to get updated. 264 // This causes the avatar and the profile menu to get updated.
264 content::NotificationService::current()->Notify( 265 content::NotificationService::current()->Notify(
265 chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, 266 chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
266 content::NotificationService::AllBrowserContextsAndSources(), 267 content::NotificationService::AllBrowserContextsAndSources(),
267 content::NotificationService::NoDetails()); 268 content::NotificationService::NoDetails());
268 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698