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

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

Issue 10703037: Move StatisticsRecorder out of histogram.cc/h for further refactoring. (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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/metrics/histogram.h" 6 #include "base/metrics/histogram.h"
7 #include "base/metrics/statistics_recorder.h"
7 #include "base/message_loop.h" 8 #include "base/message_loop.h"
8 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/protector/base_setting_change.h" 10 #include "chrome/browser/protector/base_setting_change.h"
10 #include "chrome/browser/protector/histograms.h" 11 #include "chrome/browser/protector/histograms.h"
11 #include "chrome/browser/protector/mock_protector_service.h" 12 #include "chrome/browser/protector/mock_protector_service.h"
12 #include "chrome/browser/protector/protector_service_factory.h" 13 #include "chrome/browser/protector/protector_service_factory.h"
13 #include "chrome/browser/search_engines/template_url.h" 14 #include "chrome/browser/search_engines/template_url.h"
14 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 15 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
15 #include "chrome/browser/search_engines/template_url_service.h" 16 #include "chrome/browser/search_engines/template_url_service.h"
16 #include "chrome/browser/search_engines/template_url_service_factory.h" 17 #include "chrome/browser/search_engines/template_url_service_factory.h"
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 EXPECT_EQ(FindTemplateURL(http_example_info), 668 EXPECT_EQ(FindTemplateURL(http_example_info),
668 turl_service_->GetDefaultSearchProvider()); 669 turl_service_->GetDefaultSearchProvider());
669 670
670 // Discard does nothing - backup was already active. 671 // Discard does nothing - backup was already active.
671 change->Discard(browser()); 672 change->Discard(browser());
672 EXPECT_EQ(FindTemplateURL(http_example_info), 673 EXPECT_EQ(FindTemplateURL(http_example_info),
673 turl_service_->GetDefaultSearchProvider()); 674 turl_service_->GetDefaultSearchProvider());
674 } 675 }
675 676
676 } // namespace protector 677 } // namespace protector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698