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

Side by Side Diff: chrome/browser/ui/webui/md_history_ui.h

Issue 2475593002: MD History: update (instead of re-create) data sources on sign in change (Closed)
Patch Set: old history as well Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
(...skipping 24 matching lines...) Expand all
35 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 35 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
36 36
37 static base::RefCountedMemory* GetFaviconResourceBytes( 37 static base::RefCountedMemory* GetFaviconResourceBytes(
38 ui::ScaleFactor scale_factor); 38 ui::ScaleFactor scale_factor);
39 39
40 private: 40 private:
41 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade); 41 FRIEND_TEST_ALL_PREFIXES(ContinueWhereILeftOffTest, MDHistoryUpgrade);
42 42
43 static bool use_test_title_; 43 static bool use_test_title_;
44 44
45 void CreateDataSource(); 45 void UpdateDataSource();
46 46
47 // Handler for the "menuPromoShown" message from the page. No arguments. 47 // Handler for the "menuPromoShown" message from the page. No arguments.
48 void HandleMenuPromoShown(const base::ListValue* args); 48 void HandleMenuPromoShown(const base::ListValue* args);
49 49
50 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI); 50 DISALLOW_COPY_AND_ASSIGN(MdHistoryUI);
51 }; 51 };
52 52
53 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_ 53 #endif // CHROME_BROWSER_UI_WEBUI_MD_HISTORY_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698