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

Side by Side Diff: chrome/browser/dom_ui/shown_sections_handler.cc

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/shown_sections_handler.h" 5 #include "chrome/browser/dom_ui/shown_sections_handler.h"
6 6
7 #include <string>
8
7 #include "base/callback.h" 9 #include "base/callback.h"
8 #include "base/command_line.h" 10 #include "base/command_line.h"
9 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
10 #include "base/values.h" 12 #include "base/values.h"
11 #include "chrome/browser/metrics/user_metrics.h" 13 #include "chrome/browser/metrics/user_metrics.h"
12 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/notification_details.h" 17 #include "chrome/common/notification_details.h"
17 #include "chrome/common/notification_type.h" 18 #include "chrome/common/notification_type.h"
18 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
19 20
20 namespace { 21 namespace {
21 22
22 // Will cause an UMA notification if the mode of the new tab page 23 // Will cause an UMA notification if the mode of the new tab page
23 // was changed to hide/show the most visited thumbnails. 24 // was changed to hide/show the most visited thumbnails.
24 // TODO(aa): Needs to be updated to match newest NTP - http://crbug.com/57440 25 // TODO(aa): Needs to be updated to match newest NTP - http://crbug.com/57440
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 143
143 // Hide any open sections. 144 // Hide any open sections.
144 mode &= ~ALL_SECTIONS_MASK; 145 mode &= ~ALL_SECTIONS_MASK;
145 146
146 // Show the apps section. 147 // Show the apps section.
147 mode |= APPS; 148 mode |= APPS;
148 149
149 prefs->SetInteger(prefs::kNTPShownSections, mode); 150 prefs->SetInteger(prefs::kNTPShownSections, mode);
150 } 151 }
151 } 152 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/most_visited_handler.cc ('k') | chrome/browser/download/download_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698