| OLD | NEW | 
|    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/rlz/rlz.h" |    5 #include "chrome/browser/rlz/rlz.h" | 
|    6  |    6  | 
|    7 #include "base/memory/scoped_ptr.h" |    7 #include "base/memory/scoped_ptr.h" | 
|    8 #include "base/strings/utf_string_conversions.h" |    8 #include "base/strings/utf_string_conversions.h" | 
|    9 #include "base/time/time.h" |    9 #include "base/time/time.h" | 
|   10 #include "chrome/browser/autocomplete/autocomplete_controller.h" |  | 
|   11 #include "chrome/browser/chrome_notification_types.h" |   10 #include "chrome/browser/chrome_notification_types.h" | 
|   12 #include "chrome/browser/google/google_brand.h" |   11 #include "chrome/browser/google/google_brand.h" | 
|   13 #include "chrome/browser/profiles/profile.h" |   12 #include "chrome/browser/profiles/profile.h" | 
|   14 #include "chrome/installer/util/browser_distribution.h" |   13 #include "chrome/installer/util/browser_distribution.h" | 
|   15 #include "chrome/installer/util/google_update_constants.h" |   14 #include "chrome/installer/util/google_update_constants.h" | 
|   16 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |   15 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 
|   17 #include "components/metrics/proto/omnibox_event.pb.h" |   16 #include "components/metrics/proto/omnibox_event.pb.h" | 
 |   17 #include "components/omnibox/autocomplete_controller.h" | 
|   18 #include "components/omnibox/omnibox_log.h" |   18 #include "components/omnibox/omnibox_log.h" | 
|   19 #include "content/public/browser/navigation_details.h" |   19 #include "content/public/browser/navigation_details.h" | 
|   20 #include "content/public/browser/navigation_entry.h" |   20 #include "content/public/browser/navigation_entry.h" | 
|   21 #include "content/public/browser/notification_details.h" |   21 #include "content/public/browser/notification_details.h" | 
|   22 #include "content/public/browser/notification_service.h" |   22 #include "content/public/browser/notification_service.h" | 
|   23 #include "content/public/browser/notification_source.h" |   23 #include "content/public/browser/notification_source.h" | 
|   24 #include "content/public/test/test_renderer_host.h" |   24 #include "content/public/test/test_renderer_host.h" | 
|   25 #include "rlz/test/rlz_test_helpers.h" |   25 #include "rlz/test/rlz_test_helpers.h" | 
|   26 #include "testing/gtest/include/gtest/gtest.h" |   26 #include "testing/gtest/include/gtest/gtest.h" | 
|   27 #include "url/gurl.h" |   27 #include "url/gurl.h" | 
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  916   RLZTracker::RecordProductEvent(rlz_lib::CHROME, RLZTracker::ChromeOmnibox(), |  916   RLZTracker::RecordProductEvent(rlz_lib::CHROME, RLZTracker::ChromeOmnibox(), | 
|  917                                  rlz_lib::FIRST_SEARCH); |  917                                  rlz_lib::FIRST_SEARCH); | 
|  918  |  918  | 
|  919   ExpectEventRecorded(kOmniboxFirstSearch, true); |  919   ExpectEventRecorded(kOmniboxFirstSearch, true); | 
|  920  |  920  | 
|  921   RLZTracker::ClearRlzState(); |  921   RLZTracker::ClearRlzState(); | 
|  922  |  922  | 
|  923   ExpectEventRecorded(kOmniboxFirstSearch, false); |  923   ExpectEventRecorded(kOmniboxFirstSearch, false); | 
|  924 } |  924 } | 
|  925 #endif  // defined(OS_CHROMEOS) |  925 #endif  // defined(OS_CHROMEOS) | 
| OLD | NEW |